mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Compilation + warning fix
This commit is contained in:
parent
6627d3f1ef
commit
c3ec23c758
2 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ uint8_t auxSerialTracesEnabled();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TRACE_TIME_FORMAT "%0.2f "
|
#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_NOCRLF(...) debugPrintf(__VA_ARGS__)
|
||||||
#define TRACE(f_, ...) debugPrintf((TRACE_TIME_FORMAT f_ CRLF), TRACE_TIME_VALUE, ##__VA_ARGS__)
|
#define TRACE(f_, ...) debugPrintf((TRACE_TIME_FORMAT f_ CRLF), TRACE_TIME_VALUE, ##__VA_ARGS__)
|
||||||
|
|
|
@ -58,11 +58,11 @@ class SpectrumFooterWindow: public FormGroup
|
||||||
char label[10];
|
char label[10];
|
||||||
|
|
||||||
// Frequency
|
// 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);
|
new StaticText(this, grid.getFieldSlot(3, 0), label);
|
||||||
|
|
||||||
// Span
|
// 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);
|
new StaticText(this, grid.getFieldSlot(3, 1), label);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue