Skip to content

Commit 990f231

Browse files
committed
Make the set command actually change the address.
Fixes Github #1
1 parent 60f2b1f commit 990f231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eeprom_edit.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void EEPROM_I2C_interactive(char address)
211211
EEPROM_I2C_read(I2C_Address);
212212
else if (command == 'S')
213213
//Start the setAddress funtion if the command character was an 'S'.
214-
EEPROM_I2C_setAddress();
214+
I2C_Address = EEPROM_I2C_setAddress();
215215
else if (command == 'P')
216216
//Start the function that polls the I2C bus.
217217
EEPROM_I2C_pollbus();

0 commit comments

Comments
 (0)