From bb6e54cb348f0c72e788dc1ba58ebd254bf78b48 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Fri, 14 Oct 2022 17:54:36 +0200 Subject: [PATCH] fix data type --- minesweeper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/minesweeper.c b/minesweeper.c index 2bea7ed..981a398 100644 --- a/minesweeper.c +++ b/minesweeper.c @@ -99,7 +99,7 @@ static void render_callback(Canvas* const canvas, void* ctx) { furi_string_printf(timeStr, "%01d:%02d", minutes, seconds); canvas_draw_str_aligned(canvas, 128, 0, AlignRight, AlignTop, furi_string_get_cstr(timeStr)); - uint8_t tile_to_draw; + uint8_t* tile_to_draw; for (int y = 0; y < PLAYFIELD_HEIGHT; y++) { for (int x = 0; x < PLAYFIELD_WIDTH; x++) { @@ -143,6 +143,10 @@ static void render_callback(Canvas* const canvas, void* ctx) { case TileTypeMine: tile_to_draw = tile_mine_bits; break; + default: + // this should never happen + tile_to_draw = tile_mine_bits; + break; } canvas_draw_xbm( canvas,