Permalink
Browse files

Adding check during reset to avoid skipping brightness value.

  • Loading branch information...
1 parent f77c7a5 commit 09f8af58f24c9c1efad41b33239eb1812497ce88 @jimblom jimblom committed Jan 21, 2016
View
2 ...7-Segment Display/Serial_7_Segment_Display_Firmware/Serial_7_Segment_Display_Firmware.ino
@@ -244,7 +244,7 @@ void updateBufferData()
display.digits[display.cursor] = c; // just store the read data into the cursor-active digit
display.cursor = ((display.cursor + 1) % 4); // Increment cursor, set back to 0 if necessary
}
- else if (c == RESET_CMD) // If the received char is the reset command
+ else if ((c == RESET_CMD) && (!commandMode)) // If the received char is the reset command
{
for(int i = 0 ; i < 4 ; i++)
display.digits[i] = 'x'; // clear all digits

0 comments on commit 09f8af5

Please sign in to comment.