Fix integer format warnings

This commit is contained in:
Raphael Coeffic
2022-06-17 09:20:55 +02:00
parent 7680d3425f
commit c4fc11b79a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}); });
+1 -1
View File
@@ -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