Skip to content

Commit

Permalink
The percentage sign caused problems in Linux.
Browse files Browse the repository at this point in the history
Deleted % sign in the Format string.
  • Loading branch information
ptulp committed Sep 15, 2017
1 parent 1aabea4 commit 7f20ef1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Logbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ void Logbook::SetSentence( wxString &sentence )
*/

if (m_NMEA0183.Parse()) {
wxString xdrunit;
double xdrdata;
for (int i = 0; i<m_NMEA0183.Xdr.TransducerCnt; i++) {
wimdaSentence = true;
Expand All @@ -573,7 +572,7 @@ void Logbook::SetSentence( wxString &sentence )
}
// XDR Humidity
if (m_NMEA0183.Xdr.TransducerInfo[i].TransducerType == _T("H")) {
sHumidity = wxString::Format( _T( "%3.1f %" ),xdrdata );
sHumidity = wxString::Format( _T( "%3.1f " ),xdrdata );
}

}
Expand Down Expand Up @@ -618,7 +617,7 @@ void Logbook::SetSentence( wxString &sentence )
tkz.GetNextToken();
tkz.GetNextToken();
if (tkz.GetNextToken().ToDouble( &h ))
sHumidity = wxString::Format( _T( "%3.1f %" ),h );
sHumidity = wxString::Format( _T( "%3.1f " ),h );
else
sHumidity = wxEmptyString;
}
Expand Down

0 comments on commit 7f20ef1

Please sign in to comment.