silence warnings

This commit is contained in:
Joey Castillo
2025-07-06 12:40:06 -04:00
parent 87448e6e44
commit 410d32f2d0
4 changed files with 8 additions and 5 deletions

View File

@@ -233,7 +233,7 @@ static void display(kitchen_conversions_state_t *state, uint8_t subsec)
case input:
{
char buf[7];
sprintf(buf, "%06u", state->selection_value);
sprintf(buf, "%06lu", state->selection_value);
watch_display_text(WATCH_POSITION_BOTTOM, buf);
// Only allow ints for Gas Mk
@@ -278,7 +278,7 @@ static void display(kitchen_conversions_state_t *state, uint8_t subsec)
{
uint32_t rounded = conversion + .5;
char buf[7];
sprintf(buf, "%6u", rounded);
sprintf(buf, "%6lu", rounded);
watch_display_text(WATCH_POSITION_BOTTOM, buf);
// Make sure LSDs always filled