nRF5-SDK-for-Mesh icon indicating copy to clipboard operation
nRF5-SDK-for-Mesh copied to clipboard

fix: Off-by-1 enum terminator value

Open davidrea opened this issue 3 years ago • 2 comments

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 avatar Mar 11 '21 17:03 davidrea

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 11 '21 17:03 CLAassistant

@davidrea - good catch!

peterhinson avatar Mar 17 '21 19:03 peterhinson