@@ -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}
0 commit comments