Skip to content

Commit 4ed2d4f

Browse files
V1.8.37 - Updates
- Fixed bug that prevented the parking position from being read from persistent storage. - Made sure Parking position was cleared on EEPROM clear.
1 parent 3d97b1e commit 4ed2d4f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define VERSION "V1.8.36"
1+
#define VERSION "V1.8.37"

Software/Arduino code/OpenAstroTracker/src/Mount.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
// EPROM constants
4545
#define EEPROM_MAGIC_MASK 0xFE00 // If these bits are set to 0xBE00, something has been written to the EEPROM
46-
#define EEPROM_MAGIC_EXTENDED_MASK 0xFE00 // If these bits are set to 0xBF00, an extended value has been written to the EEPROM
46+
#define EEPROM_MAGIC_EXTENDED_MASK 0xFF00 // If these bits are set to 0xBF00, an extended value has been written to the EEPROM
4747
#define EEPROM_MAGIC_MARKER 0xBE00
4848
#define EEPROM_MAGIC_EXTENDED_MARKER 0xBF00
4949

@@ -186,8 +186,10 @@ void Mount::startTimerInterrupts()
186186
/////////////////////////////////
187187
void Mount::clearConfiguration()
188188
{
189-
EPROMStore::update(4, 0);
190-
EPROMStore::update(5, 0);
189+
EPROMStore::update(5, 0); // CLear the magic marker
190+
EPROMStore::update(4, 0); // Clear the flags
191+
EPROMStore::update(21, 0); // Clear the extendede flags
192+
EPROMStore::update(22, 0);
191193
}
192194

193195
/////////////////////////////////

0 commit comments

Comments
 (0)