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

View File

@@ -33,8 +33,6 @@
#include <string.h>
#include "tarot_face.h"
uint32_t arc4random_uniform(uint32_t upper_bound);
#define TAROT_ANIMATION_TICK_FREQUENCY 8
#define FLIPPED_BIT_POS 7
#define FLIPPED_MASK ((uint8_t)(1 << FLIPPED_BIT_POS))