Skip to content

Commit 7be22c1

Browse files
committed
Use new m4 define
1 parent ef7c4fb commit 7be22c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Powershell/Powershell.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ void setRailVoltage(std::vector<String> args){
115115
#endif
116116

117117
} else if (rail == "H7_external"){
118-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
118+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
119119
board.setExternalVoltage(voltage);
120120
#else
121121
Serial.println("Current board is not an arduino portenta h7");
122122
#endif
123123

124124
} else if (rail == "nicla_external"){
125-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
125+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
126126
board.setExternalVoltage(voltage);
127127
#else
128128
Serial.println("Current board is not an arduino nicla vision");
@@ -150,7 +150,7 @@ void toggleRail(std::vector<String> args){
150150
#endif
151151

152152
} else if (rail == "H7_external"){
153-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
153+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
154154
board.setExternalPowerEnabled(on);
155155
#else
156156
Serial.println("Current board is not an arduino portenta h7");

0 commit comments

Comments
 (0)