From eeea0086dc97001ffe05ade518ca1215568a581d Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Thu, 29 Feb 2024 10:52:59 +0300 Subject: [PATCH] RA4M1: build with recent Arduino Core 1.1.0 for Renesas targets --- .github/workflows/main.yml | 2 +- .../source/SoftRF/src/platform/bluetooth/ArduinoBLE.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93ddd2d91..7e03cfe54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -320,7 +320,7 @@ jobs: fi if [[ "$BOARD" =~ "arduino:renesas_uno:" ]]; then arduino --pref "boardsmanager.additional.urls=https://downloads.arduino.cc/packages/package_index.json" --save-prefs ; - arduino --install-boards arduino:renesas_uno:1.0.5 ; + arduino --install-boards arduino:renesas_uno:1.1.0 ; arduino --board $BOARD --save-prefs ; wget https://github.com/arduino-libraries/ArduinoBLE/archive/refs/tags/${ARDUINO_BLE_VERSION}.tar.gz ; tar xzf ${ARDUINO_BLE_VERSION}.tar.gz ; diff --git a/software/firmware/source/SoftRF/src/platform/bluetooth/ArduinoBLE.cpp b/software/firmware/source/SoftRF/src/platform/bluetooth/ArduinoBLE.cpp index 37cc3e1c9..2d9528ede 100644 --- a/software/firmware/source/SoftRF/src/platform/bluetooth/ArduinoBLE.cpp +++ b/software/firmware/source/SoftRF/src/platform/bluetooth/ArduinoBLE.cpp @@ -175,6 +175,7 @@ static void RA4M1_Bluetooth_setup() case BLUETOOTH_A2DP_SOURCE: break; case BLUETOOTH_NONE: + case BLUETOOTH_SPP: default: break; } @@ -249,6 +250,7 @@ static int RA4M1_Bluetooth_available() rval = BLE_FIFO_RX.available(); break; case BLUETOOTH_NONE: + case BLUETOOTH_SPP: case BLUETOOTH_A2DP_SOURCE: default: break; @@ -267,6 +269,7 @@ static int RA4M1_Bluetooth_read() rval = BLE_FIFO_RX.read_char(); break; case BLUETOOTH_NONE: + case BLUETOOTH_SPP: case BLUETOOTH_A2DP_SOURCE: default: break; @@ -293,6 +296,7 @@ static size_t RA4M1_Bluetooth_write(const uint8_t *buffer, size_t size) } break; case BLUETOOTH_NONE: + case BLUETOOTH_SPP: case BLUETOOTH_A2DP_SOURCE: default: break;