mirror of
https://github.com/pine64/blisp.git
synced 2026-09-18 04:21:29 +00:00
Fix compiler warnings: Explicit cast where needed
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user