Skip to content

Commit 2aac782

Browse files
committed
Update LoRa_rx_tx.ino
1 parent fa7d8aa commit 2aac782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/LoRa_rx_tx/LoRa_rx_tx.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void loop() {
7272
if ((PAUSE && tx_legal && millis() - last_tx > (PAUSE * 1000)) || button.isSingleClick()) {
7373
// In case of button click, tell user to wait
7474
if (!tx_legal) {
75-
both.printf("Legal limit, wait %" PRIu64 " sec.\n", ((minimum_pause - (millis() - last_tx)) / 1000) + 1);
75+
both.printf("Legal limit, wait %i sec.\n", (int)((minimum_pause - (millis() - last_tx)) / 1000) + 1);
7676
return;
7777
}
7878
both.printf("TX [%s] ", String(counter).c_str());
@@ -83,7 +83,7 @@ void loop() {
8383
tx_time = millis() - tx_time;
8484
heltec_led(0);
8585
if (_radiolib_status == RADIOLIB_ERR_NONE) {
86-
both.printf("OK (%i ms)\n", tx_time);
86+
both.printf("OK (%i ms)\n", (int)tx_time);
8787
} else {
8888
both.printf("fail (%i)\n", _radiolib_status);
8989
}

0 commit comments

Comments
 (0)