From ee10c51970209ebe09cde7633cd5a130dd69354b Mon Sep 17 00:00:00 2001 From: "Berk D. Demir" Date: Thu, 17 Jul 2025 20:35:55 -0700 Subject: [PATCH] Fix compiler warnings: Explicit cast where needed --- lib/blisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blisp.c b/lib/blisp.c index 5516ef0..a483392 100644 --- a/lib/blisp.c +++ b/lib/blisp.c @@ -192,8 +192,8 @@ blisp_return_t blisp_device_handshake(struct blisp_device* device, sleep_ms(50); // Wait a bit so BootROM can init } - uint32_t bytes_count = device->chip->handshake_byte_multiplier * - (float)device->current_baud_rate / 10.0f; + uint32_t bytes_count = (uint32_t)(device->chip->handshake_byte_multiplier * + (float)device->current_baud_rate / 10.0f); if (bytes_count > 600) bytes_count = 600; memset(handshake_buffer, 'U', bytes_count);