changed read from int to short

pull/74/head
alanbjohnston 5 years ago committed by GitHub
parent 669bc26f25
commit f543f19e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ int Sensor1 = 0;
int Sensor2 = 0;
float Sensor3 = 0;
void eeprom_word_write(int addr, int val);
int eeprom_word_read(int addr);
short eeprom_word_read(int addr);
void setup() {
@ -249,7 +249,7 @@ void eeprom_word_write(int addr, int val)
}
int eeprom_word_read(int addr)
short eeprom_word_read(int addr)
{
return((EEPROM.read(addr * 2 + 1) << 8) | EEPROM.read(addr * 2));
}

Loading…
Cancel
Save

Powered by TurnKey Linux.