Skip to content

Commit

Permalink
[ESP32] Sync BLE error codes with CHIP error codes (#25918)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadhavrohit924 authored and pull[bot] committed Oct 17, 2023
1 parent 0d77456 commit 2316880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/ESP32/nimble/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ CHIP_ERROR BLEManagerImpl::MapBLEError(int bleErr)
case ESP_OK:
return CHIP_NO_ERROR;
case BLE_HS_EMSGSIZE:
return CHIP_ERROR_INVALID_MESSAGE_LENGTH;
return CHIP_ERROR_BUFFER_TOO_SMALL;
case BLE_HS_ENOMEM:
case ESP_ERR_NO_MEM:
return CHIP_ERROR_NO_MEMORY;
Expand All @@ -692,7 +692,7 @@ CHIP_ERROR BLEManagerImpl::MapBLEError(int bleErr)
case BLE_HS_ENOTSUP:
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
case BLE_HS_EAPP:
return CHIP_ERROR_READ_FAILED;
return CHIP_ERROR_INCORRECT_STATE;
case BLE_HS_EBADDATA:
return CHIP_ERROR_DATA_NOT_ALIGNED;
case BLE_HS_ETIMEOUT:
Expand Down

0 comments on commit 2316880

Please sign in to comment.