Skip to content

Commit

Permalink
Remove nonsense EEPROM read.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Apr 18, 2022
1 parent c0dade1 commit 36d4a31
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fw/src/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ void ee_load() {
turnout.angle_minus = eeprom_read_word(EEPROM_ADDR_POS_MINUS);
if (turnout.angle_minus > PWM_ANGLE_MAX)
turnout.angle_minus = PWM_ANGLE_MAX;
turnout.angle = eeprom_read_word(EEPROM_ADDR_POS_MINUS);
if (turnout.angle > PWM_ANGLE_MAX)
turnout.angle = PWM_ANGLE_MAX;

turnout.sensor_plus = eeprom_read_word(EEPROM_ADDR_SENS_PLUS);
turnout.sensor_minus = eeprom_read_word(EEPROM_ADDR_SENS_MINUS);
Expand Down

0 comments on commit 36d4a31

Please sign in to comment.