Skip to content

Commit 09f8af5

Browse files
author
Jim Lindblom
committed
Adding check during reset to avoid skipping brightness value.
1 parent f77c7a5 commit 09f8af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/Serial 7-Segment Display/Serial_7_Segment_Display_Firmware/Serial_7_Segment_Display_Firmware.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void updateBufferData()
244244
display.digits[display.cursor] = c; // just store the read data into the cursor-active digit
245245
display.cursor = ((display.cursor + 1) % 4); // Increment cursor, set back to 0 if necessary
246246
}
247-
else if (c == RESET_CMD) // If the received char is the reset command
247+
else if ((c == RESET_CMD) && (!commandMode)) // If the received char is the reset command
248248
{
249249
for(int i = 0 ; i < 4 ; i++)
250250
display.digits[i] = 'x'; // clear all digits

0 commit comments

Comments
 (0)