We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60e004 commit ee10c51Copy full SHA for ee10c51
lib/blisp.c
@@ -192,8 +192,8 @@ blisp_return_t blisp_device_handshake(struct blisp_device* device,
192
sleep_ms(50); // Wait a bit so BootROM can init
193
}
194
195
- uint32_t bytes_count = device->chip->handshake_byte_multiplier *
196
- (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);
197
if (bytes_count > 600)
198
bytes_count = 600;
199
memset(handshake_buffer, 'U', bytes_count);
0 commit comments