We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f539a1f commit b239c99Copy full SHA for b239c99
ArduinoFrontend/src/app/Libs/Utils.ts
@@ -183,7 +183,7 @@ export class Utils {
183
};
184
static checkShortCircuit() {
185
const powerConnections = BreadBoard.checkBreadboardPowerConnections();
186
- if (BreadBoard.checkAllPinsConnectedToOneRail(powerConnections.poweredRail)) {
+ if (powerConnections.poweredRail != null && BreadBoard.checkAllPinsConnectedToOneRail(powerConnections.poweredRail)) {
187
return true;
188
} else {
189
return false;
0 commit comments