eeprom_update_byte((uint8_t *)0x23, shift_register >> 16);
eeprom_update_byte((uint8_t *)0x24, shift_register >> 24);
*/
-
- shift_register = eeprom_read_byte((uint8_t *)0x21) |
- eeprom_read_byte((uint8_t *)0x22) << 8 |
- (uint32_t)eeprom_read_byte((uint8_t *)0x23) << 16 |
- (uint32_t)eeprom_read_byte((uint8_t *)0x24) << 24;
+ _delay_ms(200);
+ /*shift_register = eeprom_read_byte((uint8_t *)0x21) |
+ (eeprom_read_byte((uint8_t *)0x22) << 8) |
+ (((uint32_t)eeprom_read_byte((uint8_t *)0x23)) << 16) |
+ (((uint32_t)eeprom_read_byte((uint8_t *)0x24)) << 24);
+*/
+ shift_register = eeprom_read_dword((uint32_t*)0x21);
//shift_register = 0xffffffff; //default value