Fixed some bugs update TODO with EEPROM info
This commit is contained in:
parent
19d0ddfb91
commit
24da8002d8
2
TODO
2
TODO
@ -1,2 +1,2 @@
|
|||||||
Fix EEPROM detection (and maybe read / write)
|
Fix EEPROM write - detection and read work (maybe algo failure?)
|
||||||
Battery icon - how to calc percentage?
|
Battery icon - how to calc percentage?
|
||||||
|
|||||||
@ -518,9 +518,6 @@ int main()
|
|||||||
attach_detach_spool();
|
attach_detach_spool();
|
||||||
|
|
||||||
display_enable(1);
|
display_enable(1);
|
||||||
print_mm();
|
|
||||||
print_direction();
|
|
||||||
print_battery_icon();
|
|
||||||
state = STATE_IDLE;
|
state = STATE_IDLE;
|
||||||
|
|
||||||
sei();
|
sei();
|
||||||
@ -1586,7 +1583,7 @@ void spool_count(uint8_t event)
|
|||||||
// Clear old cell & write to next one
|
// Clear old cell & write to next one
|
||||||
write_eeprom_val(eeprom_idx, 0xFFFFFFFF, 0xFF);
|
write_eeprom_val(eeprom_idx, 0xFFFFFFFF, 0xFF);
|
||||||
++eeprom_idx;
|
++eeprom_idx;
|
||||||
eeprom_idx %= EEPROM_SIZE;
|
eeprom_idx %= (EEPROM_SIZE / EEPROM_IDX_SIZE);
|
||||||
write_eeprom_val(eeprom_idx, (uint32_t) count_value_fine, rot_dir_is_A);
|
write_eeprom_val(eeprom_idx, (uint32_t) count_value_fine, rot_dir_is_A);
|
||||||
}
|
}
|
||||||
count_value = (uint32_t) count_value_fine;
|
count_value = (uint32_t) count_value_fine;
|
||||||
@ -1894,7 +1891,7 @@ void attach_detach_spool()
|
|||||||
// Clear old cell & write to next one
|
// Clear old cell & write to next one
|
||||||
write_eeprom_val(eeprom_idx, 0xFFFFFFFF, 0xFF);
|
write_eeprom_val(eeprom_idx, 0xFFFFFFFF, 0xFF);
|
||||||
++eeprom_idx;
|
++eeprom_idx;
|
||||||
eeprom_idx %= EEPROM_SIZE;
|
eeprom_idx %= (EEPROM_SIZE / EEPROM_IDX_SIZE);
|
||||||
write_eeprom_val(eeprom_idx, (uint32_t) count_value_fine, rot_dir_is_A);
|
write_eeprom_val(eeprom_idx, (uint32_t) count_value_fine, rot_dir_is_A);
|
||||||
|
|
||||||
spool_counting = 0;
|
spool_counting = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user