From 14c4022c1871aaa32d99edf6c6b4e6d6188ec3cf Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 21 Oct 2020 19:18:03 +0800 Subject: [PATCH] 1.1.6 (and screen layout tweaks) --- bin/build-all.sh | 10 +++++----- bin/version.sh | 2 +- src/graphics/Screen.cpp | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/build-all.sh b/bin/build-all.sh index 55c816d00..9f0888f03 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -66,9 +66,9 @@ function do_build() { } function do_boards() { - BOARDS=$1 - isNrf=$2 - for board in $BOARDS; do + declare boards=$1 + declare isNrf=$2 + for board in $boards; do for country in $COUNTRIES; do do_build $board $country "$isNrf" done @@ -84,8 +84,8 @@ git submodule update # Important to pull latest version of libs into all device flavors, otherwise some devices might be stale platformio lib update -do_boards $BOARDS_ESP32 "false" -do_boards $BOARDS_NRF52 "true" +do_boards "$BOARDS_ESP32" "false" +do_boards "$BOARDS_NRF52" "true" # keep the bins in archive also cp $OUTDIR/bins/firmware* $OUTDIR/elfs/firmware* $OUTDIR/bins/universal/firmware* $OUTDIR/elfs/universal/firmware* $ARCHIVEDIR diff --git a/bin/version.sh b/bin/version.sh index ecc6ad74a..4e8e08ae9 100644 --- a/bin/version.sh +++ b/bin/version.sh @@ -1,3 +1,3 @@ -export VERSION=1.1.5 \ No newline at end of file +export VERSION=1.1.6 \ No newline at end of file diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index b6e626fdf..7773cdc32 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -92,9 +92,8 @@ static void drawBootScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int1 // needs to be drawn relative to x and y // draw centered left to right and centered above the one line of app text - display->drawXbm(x + (SCREEN_WIDTH - icon_width) / 2, - y + (SCREEN_HEIGHT - FONT_HEIGHT_MEDIUM - icon_height) / 2 + 2, - icon_width, icon_height, (const uint8_t *)icon_bits); + display->drawXbm(x + (SCREEN_WIDTH - icon_width) / 2, y + (SCREEN_HEIGHT - FONT_HEIGHT_MEDIUM - icon_height) / 2 + 2, + icon_width, icon_height, (const uint8_t *)icon_bits); display->setFont(FONT_MEDIUM); display->setTextAlignment(TEXT_ALIGN_LEFT);