diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90a8286d..c5c29092 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,9 +101,9 @@ jobs: - name: Package firmware run: | - if [[ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin" ]]; then + if [ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin" ]; then cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin 0x01000.bin - elif [[ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin" ]]; then + elif [ -f "/github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin" ]; then cp /github/home/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin 0x01000.bin else echo could not find bootloader_dio_40m.bin, new location? diff --git a/src/displays.cpp b/src/displays.cpp index b1d122cd..9bc4118d 100644 --- a/src/displays.cpp +++ b/src/displays.cpp @@ -98,8 +98,8 @@ void SSD1306DisplayDevice::showValues( const int bufSize = 64; char buffer[bufSize]; // #ifdef NERD_SENSOR_DISTANCE - snprintf(buffer, bufSize - 1, "%03d|%02d|%04.1f", sensor1.rawDistance, - lastMeasurements, gps.getSpeed()); // sensor2.rawDistance); + snprintf(buffer, bufSize - 1, "%03d|%02d|%03d", sensor1.rawDistance, + lastMeasurements, sensor2.rawDistance); // #endif #ifdef NERD_HEAP snprintf(buffer, bufSize - 1, "%03d|%02d|%uk", sensor1.rawDistance,