Skip to content

Commit 9e8fa2d

Browse files
committed
fix(nimble): Fix unused variable warning
1 parent 7898ac5 commit 9e8fa2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLE/src/BLEDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ String BLEDevice::getValue(BLEAddress bdAddress, BLEUUID serviceUUID, BLEUUID ch
236236
*/
237237
void BLEDevice::init(String deviceName) {
238238
if (!initialized) {
239-
esp_err_t errRc = ESP_OK;
239+
[[maybe_unused]] esp_err_t errRc = ESP_OK;
240240
#if defined(ARDUINO_ARCH_ESP32) && !defined(CONFIG_NIMBLE_ENABLED)
241241
if (!btStart()) {
242242
errRc = ESP_FAIL;

0 commit comments

Comments
 (0)