Skip to content

Commit 8a794f2

Browse files
committed
Renamed the Mode_Change example to Serial_Mode_Change.
1 parent 6b193ff commit 8a794f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ void setupUART()
243243
//certain mode. Available modes are regular, analog meter, and counter modes.
244244
void setupMode()
245245
{
246-
deviceMode = EEPROM.read(MODE_ADDRESS); // Read the mode the device should be in
247-
248-
if (deviceMode > MODE_COUNTER)
246+
deviceMode = EEPROM.read(MODE_ADDRESS); // Read the mode the device should be in
247+
248+
if (deviceMode > MODE_COUNTER)
249249
{ // If the mode is invalid, goto default mode
250250
deviceMode = MODE_DEFAULT;
251251
EEPROM.write(MODE_ADDRESS, MODE_DEFAULT);
@@ -356,5 +356,5 @@ void setDefaultSettings(void)
356356

357357
//Reset the mode to the default data interface
358358
EEPROM.write(MODE_ADDRESS, MODE_DEFAULT);
359-
deviceMode = MODE_DEFAULT; //Return device's mode to default
359+
deviceMode = MODE_DEFAULT;
360360
}

0 commit comments

Comments
 (0)