Fix integer format warnings
This commit is contained in:
@@ -153,7 +153,7 @@ void ModuleWindow::update()
|
|||||||
COLOR_THEME_PRIMARY1);
|
COLOR_THEME_PRIMARY1);
|
||||||
new DynamicText(this, grid.getFieldSlot(), [=] {
|
new DynamicText(this, grid.getFieldSlot(), [=] {
|
||||||
char msg[64] = "";
|
char msg[64] = "";
|
||||||
sprintf(msg, "%d Hz %lu Err", 1000000 / getMixerSchedulerPeriod(),
|
sprintf(msg, "%d Hz %" PRIu32 " Err", 1000000 / getMixerSchedulerPeriod(),
|
||||||
telemetryErrors);
|
telemetryErrors);
|
||||||
return std::string(msg);
|
return std::string(msg);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ class VersionDialog : public Dialog
|
|||||||
|
|
||||||
char statusText[64];
|
char statusText[64];
|
||||||
auto hz = 1000000 / getMixerSchedulerPeriod();
|
auto hz = 1000000 / getMixerSchedulerPeriod();
|
||||||
snprintf(statusText, 64, "%d Hz %lu Err", hz, telemetryErrors);
|
snprintf(statusText, 64, "%d Hz %" PRIu32 " Err", hz, telemetryErrors);
|
||||||
status->setText(statusText);
|
status->setText(statusText);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user