nRF5-SDK-for-Mesh
nRF5-SDK-for-Mesh copied to clipboard
fix: Off-by-1 enum terminator value
It looks like the NRF_MESH_DFU_END_ERROR_BANK_AND_DESTINATION_OVERLAP enum value was added to nrf_mesh_dfu_end_t but the NRF_MESH_DFU_END_ERROR__LAST value not updated.
This should be a pretty benign error as the enum is only statically bounds-checked against the type range, but correcting it protects future runtime boundary checks from spurious errors.
@davidrea - good catch!