diff --git a/Changelog b/Changelog index baf60f5..fe5b796 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +2026-08-18: +- fixed: printf with one missing parameter + 2024-08-07: - changed: logging screen is now working. diff --git a/client.cc b/client.cc index 5ce291b..4852f99 100644 --- a/client.cc +++ b/client.cc @@ -206,11 +206,11 @@ gboolean mbcli_thread_cb_modbusdata(gpointer data) { memcpy (((char*)&f2) + 2, &res->data[i], 2); memcpy (((char*)&f2) + 0, &res->data[i+1], 2); - snprintf (tmp, 255, " | %6d | %6d | %11.5g | %11.5g", res->data[i], (int16_t) res->data[i], f1, f2); + snprintf (tmp, 255, " | %6d | %6d | %11.5g | %11.5g", res->data[i], (uint16_t) res->data[i], f1, f2); text = text + tmp; } else { - snprintf (tmp, 255, " | %6d | %6d | | ", res->data[i]); + snprintf (tmp, 255, " | %6d | %6d | | ", res->data[i], (uint16_t) res->data[i]); text = text + tmp; }