Skip to content

Commit 9f1f4b3

Browse files
Merge pull request #34 from ClutchplateDude/oatcontrol
V1.6.56a - Updates
2 parents e01dd4c + 639f632 commit 9f1f4b3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Software/Arduino code/OpenAstroTracker/DayTime.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ const char* DayTime::ToString() const
189189
}
190190

191191
*p++ = '0' + (secs % 10);
192-
sprintf(p, " (%.4f)", this->getTotalHours());
192+
*p++ = ' ';
193+
*p++ = '(';
194+
strcpy(p, String(this->getTotalHours(), 4).c_str());
195+
strcat(p, ")");
193196
return achBuf;
194197
}
195198

@@ -270,7 +273,10 @@ const char* DegreeTime::ToString() const
270273
}
271274

272275
*p++ = '0' + (secs % 10);
273-
sprintf(p, " (%.4f)", NORTHERN_HEMISPHERE ? getTotalHours() + 90 : getTotalHours() - 90);
276+
*p++ = ' ';
277+
*p++ = '(';
278+
strcpy(p, String(NORTHERN_HEMISPHERE ? getTotalHours() + 90 : getTotalHours() - 90, 4).c_str());
279+
strcat(p, ")");
274280

275281
return achBufDeg;
276282
}

Software/Arduino code/OpenAstroTracker/Mount.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ Mount::Mount(int stepsPerRADegree, int stepsPerDECDegree, LcdMenu* lcdMenu) {
8181
//
8282
// EEPROM storage location 5 must be 0xBE for the mount to read any data
8383
// Location 4 indicates what has been stored so far: 00000000
84-
// ^^^
85-
// |||
84+
// ^^^^
85+
// ||||
86+
// Backlash steps (10/11) ----------+|||
8687
// Speed factor (0/3) ----------+||
8788
// DEC stepper motor steps per degree (8/9) -----------+|
8889
// RA stepper motor steps per degree (6/7) ------------+

0 commit comments

Comments
 (0)