Skip to content

Commit ecd0001

Browse files
committed
clean up warnings
1 parent 93c6a97 commit ecd0001

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/image_upload/image_upload.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ void bleuart_rx_callback(uint16_t conn_hdl)
239239
if ( totalPixel == imageWidth*imageHeight )
240240
{
241241
uint8_t crc = bleuart.read();
242+
(void) crc;
242243
// do checksum later
243244

244245
// print speed summary
@@ -310,6 +311,9 @@ void print_summary(uint32_t count, uint32_t ms)
310311

311312
void bleuart_overflow_callback(uint16_t conn_hdl, uint16_t leftover)
312313
{
314+
(void) conn_hdl;
315+
(void) leftover;
316+
313317
Serial.println("BLEUART rx buffer OVERFLOWED!");
314318
Serial.println("Please increase buffer size for bleuart");
315319

@@ -335,6 +339,7 @@ void bleuart_overflow_callback(uint16_t conn_hdl, uint16_t leftover)
335339
*/
336340
void disconnect_callback(uint16_t conn_handle, uint8_t reason)
337341
{
342+
(void) conn_handle;
338343
(void) reason;
339344

340345
tft.fillScreen(COLOR_BLACK);

0 commit comments

Comments
 (0)