Skip to content

Commit 013d96a

Browse files
committed
EEPROM: remove erroneous << 32 in double get()
1 parent 6516289 commit 013d96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/EEPROM/src/EEPROM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ void ap3_EEPROM::get(uint16_t eepromLocation, double &dataToGet)
113113
double lf;
114114
uint32_t b[2];
115115
} temp;
116-
temp.b[1] = *(uint32_t *)(AP3_FLASH_EEPROM_START + eepromLocation); //LSB;
117-
temp.b[0] = *(uint32_t *)(AP3_FLASH_EEPROM_START + eepromLocation + 4) << 32; //MSB;
116+
temp.b[1] = *(uint32_t *)(AP3_FLASH_EEPROM_START + eepromLocation); //LSB;
117+
temp.b[0] = *(uint32_t *)(AP3_FLASH_EEPROM_START + eepromLocation + 4); //MSB;
118118
dataToGet = temp.lf;
119119
}
120120

0 commit comments

Comments
 (0)