Skip to content

Commit c14d9d8

Browse files
V1.7.04 - Updates
- Fixed a bug that prevented the speed calibration factor adjustment to persist correctly. - Fixed a bug that did not adjust the tracking speed as you increased the speed calibration factor
1 parent 191da90 commit c14d9d8

File tree

1 file changed

+9
-2
lines changed
  • Software/Arduino code/OpenAstroTracker

1 file changed

+9
-2
lines changed

Software/Arduino code/OpenAstroTracker/Mount.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ void Mount::readPersistentData()
126126
{
127127
// Read the magic marker byte and state
128128
int marker = EEPROM.read(4) + EEPROM.read(5) * 256;
129+
#ifdef DEBUG_MODE
130+
logv("EEPROM: Marker: %x ", marker);
131+
#endif
132+
129133
if ((marker & 0xFF01) == 0xBE01) {
130134
_stepsPerRADegree = EEPROM.read(6) + EEPROM.read(7) * 256;
131135
#if DEBUG_LEVEL&DEBUG_MOUNT
@@ -213,6 +217,9 @@ void Mount::writePersistentData(int which, int val)
213217
break;
214218
}
215219

220+
#ifdef DEBUG_MODE
221+
logv("EEPROM Write: New Marker is 0xBE, flag is %x (%d)", flag, flag);
222+
#endif
216223

217224
EEPROMupdate(4, flag);
218225
EEPROMupdate(5, 0xBE);
@@ -1566,9 +1573,9 @@ void Mount::displayStepperPosition() {
15661573
_lcdMenu->setCursor(0, 1);
15671574
_lcdMenu->printMenu(scratchBuffer);
15681575
#endif
1569-
}
1576+
}
15701577
#endif
1571-
}
1578+
}
15721579

15731580
/////////////////////////////////
15741581
//

0 commit comments

Comments
 (0)