fix: Do not display 0 Err when when info is unavailable (#3890)

* fix: unsuported %zu in arm compiler

* fix: do not display 0 Err when when info is unavailable
This commit is contained in:
3djc
2023-08-03 14:41:13 +10:00
committed by GitHub
parent c6503a77c7
commit 490fb951f8
2 changed files with 3 additions and 3 deletions
@@ -162,8 +162,8 @@ void menuRadioModulesVersion(event_t event)
#if defined(CROSSFIRE)
if (isModuleCrossfire(module)) {
char statusText[64] = "";
sprintf(statusText, "%d Hz %zu Err",
1000000 / getMixerSchedulerPeriod(), (size_t)0/*telemetryErrors*/);
sprintf(statusText, "%d Hz"/* %" PRIu32" Err"*/,
1000000 / getMixerSchedulerPeriod()/*, UINT32_C(telemetryErrors)*/);
lcdDrawText(COLUMN2_X, y, statusText);
y += FH;
continue;