1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Compilation + warning fix

This commit is contained in:
Bertrand Songis 2020-03-04 10:46:38 +01:00
parent 6627d3f1ef
commit c3ec23c758
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ uint8_t auxSerialTracesEnabled();
#endif
#define TRACE_TIME_FORMAT "%0.2f "
#define TRACE_TIME_VALUE float(g_tmr10ms) / 100
#define TRACE_TIME_VALUE ((float)g_tmr10ms / 100)
#define TRACE_NOCRLF(...) debugPrintf(__VA_ARGS__)
#define TRACE(f_, ...) debugPrintf((TRACE_TIME_FORMAT f_ CRLF), TRACE_TIME_VALUE, ##__VA_ARGS__)

View file

@ -58,11 +58,11 @@ class SpectrumFooterWindow: public FormGroup
char label[10];
// Frequency
sprintf(label,"T: %dMHz", reusableBuffer.spectrumAnalyser.freq / 1000000);
sprintf(label,"T: %dMHz", int(reusableBuffer.spectrumAnalyser.freq / 1000000));
new StaticText(this, grid.getFieldSlot(3, 0), label);
// Span
sprintf(label,"S: %dMHz", reusableBuffer.spectrumAnalyser.span / 1000000);
sprintf(label,"S: %dMHz", int(reusableBuffer.spectrumAnalyser.span / 1000000));
new StaticText(this, grid.getFieldSlot(3, 1), label);
}
else {