Skip to content

Commit 87f918c

Browse files
Merge branch 'develop' of https://github.com/OpenAstroTech/OpenAstroTracker-Firmware into develop
# Conflicts: # Changelog.md # Version.h
2 parents ab8d6f6 + 233c548 commit 87f918c

21 files changed

+590
-615
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ BraceWrapping:
2929
AfterCaseLabel: true
3030
AfterClass: true
3131
AfterControlStatement: Always
32-
AfterEnum: false
32+
AfterEnum: true
3333
AfterFunction: true
3434
AfterNamespace: true
3535
AfterObjCDeclaration: true

Changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
**V1.11.3 - Updates**
1+
**V1.11.4 - Updates**
22
- Allow disabling Points Of Interest in LCD menu
33

4+
**V1.11.3 - Updates**
5+
- Change logging macro LOGVx to LOG
6+
47
**V1.11.2 - Updates**
58
- Cache build files by default
69

Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// Also, numbers are interpreted as simple numbers. _ __ _
44
// So 1.8 is actually 1.08, meaning that 1.12 is a later version than 1.8. \_(..)_/
55

6-
#define VERSION "V1.11.3"
6+
#define VERSION "V1.11.4"

src/DayTime.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DayTime DayTime::ParseFromMeade(String const &s)
1717
DayTime result;
1818
int i = 0;
1919
long sgn = 1;
20-
LOGV2(DEBUG_MEADE, F("[DAYTIME]: Parse Coord from [%s]"), s.c_str());
20+
LOG(DEBUG_MEADE, "[DAYTIME]: Parse Coord from [%s]", s.c_str());
2121
// Check whether we have a sign. This should be able to parse RA and DEC strings (RA never has a sign, and DEC should always have one).
2222
if ((s[i] == '-') || (s[i] == '+'))
2323
{
@@ -27,34 +27,34 @@ DayTime DayTime::ParseFromMeade(String const &s)
2727

2828
// Degs can be 2 or 3 digits
2929
long degs = s[i++] - '0';
30-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: 1st digit [%c] -> degs=%l"), s[i - 1], degs);
30+
LOG(DEBUG_MEADE, "[DAYTIME]: 1st digit [%c] -> degs=%l", s[i - 1], degs);
3131
degs = degs * 10 + s[i++] - '0';
32-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: 2nd digit [%c] -> degs=%l"), s[i - 1], degs);
32+
LOG(DEBUG_MEADE, "[DAYTIME]: 2nd digit [%c] -> degs=%l", s[i - 1], degs);
3333

3434
// Third digit?
3535
if ((s[i] >= '0') && (s[i] <= '9'))
3636
{
3737
degs = degs * 10 + s[i++] - '0';
38-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: 3rd digit [%c] -> degs=%d"), s[i - 1], degs);
38+
LOG(DEBUG_MEADE, "[DAYTIME]: 3rd digit [%c] -> degs=%d", s[i - 1], degs);
3939
}
4040
i++; // Skip seperator
4141

4242
int mins = s.substring(i, i + 2).toInt();
43-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: Minutes are [%s] -> mins=%d"), s.substring(i, i + 2).c_str(), mins);
43+
LOG(DEBUG_MEADE, "[DAYTIME]: Minutes are [%s] -> mins=%d", s.substring(i, i + 2).c_str(), mins);
4444
int secs = 0;
4545
if (int(s.length()) > i + 4)
4646
{
4747
secs = s.substring(i + 3, i + 5).toInt();
48-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: Seconds are [%s] -> secs=%d"), s.substring(i + 3, i + 5).c_str(), secs);
48+
LOG(DEBUG_MEADE, "[DAYTIME]: Seconds are [%s] -> secs=%d", s.substring(i + 3, i + 5).c_str(), secs);
4949
}
5050
else
5151
{
52-
LOGV3(DEBUG_MEADE, F("[DAYTIME]: No Seconds. slen %d is not > %d"), s.length(), i + 4);
52+
LOG(DEBUG_MEADE, "[DAYTIME]: No Seconds. slen %d is not > %d", s.length(), i + 4);
5353
}
5454
// Get the signed total seconds specified....
5555
result.totalSeconds = sgn * (((degs * 60L + mins) * 60L) + secs);
5656

57-
LOGV5(DEBUG_MEADE, F("[DAYTIME]: TotalSeconds are %l from %lh %dm %ds"), result.totalSeconds, degs, mins, secs);
57+
LOG(DEBUG_MEADE, "[DAYTIME]: TotalSeconds are %l from %lh %dm %ds", result.totalSeconds, degs, mins, secs);
5858

5959
return result;
6060
}

src/Declination.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ void Declination::checkHours()
5959
{
6060
if (totalSeconds > arcSecondsPerHemisphere)
6161
{
62-
LOGV1(DEBUG_GENERAL, F("[DECLINATION]: CheckHours: Degrees is more than 180, clamping"));
62+
LOG(DEBUG_GENERAL, "[DECLINATION]: CheckHours: Degrees is more than 180, clamping");
6363
totalSeconds = arcSecondsPerHemisphere;
6464
}
6565
if (totalSeconds < -arcSecondsPerHemisphere)
6666
{
67-
LOGV1(DEBUG_GENERAL, F("[DECLINATION]: CheckHours: Degrees is less than -180, clamping"));
67+
LOG(DEBUG_GENERAL, "[DECLINATION]: CheckHours: Degrees is less than -180, clamping");
6868
totalSeconds = -arcSecondsPerHemisphere;
6969
}
7070
}
@@ -96,15 +96,15 @@ const char *Declination::ToString() const
9696
Declination Declination::ParseFromMeade(String const &s)
9797
{
9898
Declination result;
99-
LOGV2(DEBUG_GENERAL, F("[DECLINATION]: Declination.Parse(%s)"), s.c_str());
99+
LOG(DEBUG_GENERAL, "[DECLINATION]: Declination.Parse(%s)", s.c_str());
100100

101101
// Use the DayTime code to parse it...
102102
DayTime dt = DayTime::ParseFromMeade(s);
103103

104104
// ...and then correct for hemisphere
105105
result.totalSeconds = NORTHERN_HEMISPHERE ? (arcSecondsPerHemisphere / 2) - dt.getTotalSeconds()
106106
: -(arcSecondsPerHemisphere / 2) + dt.getTotalSeconds();
107-
LOGV4(DEBUG_GENERAL, F("[DECLINATION]: Declination.Parse(%s) -> %s (%l)"), s.c_str(), result.ToString(), result.totalSeconds);
107+
LOG(DEBUG_GENERAL, "[DECLINATION]: Declination.Parse(%s) -> %s (%l)", s.c_str(), result.ToString(), result.totalSeconds);
108108
return result;
109109
}
110110

0 commit comments

Comments
 (0)