From 626269d62cf980f6623f9639797b50233d13ebcb Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 1 Apr 2018 10:40:18 +0200 Subject: [PATCH] sprintf mac counter fixed --- src/blecount.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blecount.cpp b/src/blecount.cpp index c5b1a780..d4076ee9 100644 --- a/src/blecount.cpp +++ b/src/blecount.cpp @@ -27,6 +27,6 @@ void BLECount() { u8x8.clearLine(3); u8x8.setCursor(0,3); blenum=foundDevices.getCount(); - u8x8.printf("BLE#: %5i",blenum); + u8x8.printf("BLE#: %-5i",blenum); } #endif \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index a6771e83..958ec6e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -211,7 +211,7 @@ void wifi_sniffer_loop(void * pvParameters) { // Prepare and execute LoRaWAN data upload u8x8.setCursor(0,4); - u8x8.printf("MAC#: %5i", macnum); + u8x8.printf("MAC#: %-5i", macnum); do_send(&sendjob); // send payload vTaskDelay(500/portTICK_PERIOD_MS); yield();