@@ -17,7 +17,7 @@ DayTime DayTime::ParseFromMeade(String const &s)
17
17
DayTime result;
18
18
int i = 0 ;
19
19
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 ());
21
21
// 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).
22
22
if ((s[i] == ' -' ) || (s[i] == ' +' ))
23
23
{
@@ -27,34 +27,34 @@ DayTime DayTime::ParseFromMeade(String const &s)
27
27
28
28
// Degs can be 2 or 3 digits
29
29
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);
31
31
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);
33
33
34
34
// Third digit?
35
35
if ((s[i] >= ' 0' ) && (s[i] <= ' 9' ))
36
36
{
37
37
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);
39
39
}
40
40
i++; // Skip seperator
41
41
42
42
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);
44
44
int secs = 0 ;
45
45
if (int (s.length ()) > i + 4 )
46
46
{
47
47
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);
49
49
}
50
50
else
51
51
{
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 );
53
53
}
54
54
// Get the signed total seconds specified....
55
55
result.totalSeconds = sgn * (((degs * 60L + mins) * 60L ) + secs);
56
56
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);
58
58
59
59
return result;
60
60
}
0 commit comments