Skip to content

Commit 7e8d21b

Browse files
fix logic
1 parent 641e25c commit 7e8d21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/AnalogInputFirmata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void AnalogInputFirmata::reportAnalog(byte analogPin, int value)
4646
analogInputsToReport = analogInputsToReport | (1 << analogPin);
4747
// prevent during system reset or all analog pin values will be reported
4848
// which may report noise for unconnected analog pins
49-
if (Firmata.isResetting()) {
49+
if (!Firmata.isResetting()) {
5050
// Send pin value immediately. This is helpful when connected via
5151
// ethernet, wi-fi or bluetooth so pin states can be known upon
5252
// reconnecting.

0 commit comments

Comments
 (0)