Skip to content

Commit 04bec92

Browse files
committed
Fix for type of I2C_ADDRESS
1 parent bf27011 commit 04bec92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eeprom_edit.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void loop()
2626
}
2727

2828
//Prompt the user for an address on the EEPROM to read from, and the amount of bytes to read from there.
29-
void EEPROM_I2C_read(byte I2C_ADDRESS)
29+
void EEPROM_I2C_read(char I2C_ADDRESS)
3030
{
3131
Serial.println("Enter EEPROM address (decimal) to read from:");
3232
while(!Serial.available());
@@ -85,7 +85,7 @@ void EEPROM_I2C_read(byte I2C_ADDRESS)
8585
Serial.println("Received less than target amount of bytes!");
8686
}
8787

88-
void EEPROM_I2C_write(byte I2C_ADDRESS)
88+
void EEPROM_I2C_write(char I2C_ADDRESS)
8989
{
9090
//Constant for the number of tries. With 10 you're fine, I never had 10 write failures in succession.
9191
const char NUM_TRIES = 10;

0 commit comments

Comments
 (0)