Skip to content

Commit ee10c51

Browse files
committed
Fix compiler warnings: Explicit cast where needed
1 parent d60e004 commit ee10c51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/blisp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ blisp_return_t blisp_device_handshake(struct blisp_device* device,
192192
sleep_ms(50); // Wait a bit so BootROM can init
193193
}
194194

195-
uint32_t bytes_count = device->chip->handshake_byte_multiplier *
196-
(float)device->current_baud_rate / 10.0f;
195+
uint32_t bytes_count = (uint32_t)(device->chip->handshake_byte_multiplier *
196+
(float)device->current_baud_rate / 10.0f);
197197
if (bytes_count > 600)
198198
bytes_count = 600;
199199
memset(handshake_buffer, 'U', bytes_count);

0 commit comments

Comments
 (0)