changed read from int to short

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

@ -18,7 +18,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() {
@ -192,7 +192,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.