From 89e2527b3f2244e846d50b3a215cd36095450adc Mon Sep 17 00:00:00 2001 From: Dave Rea Date: Thu, 11 Mar 2021 12:00:04 -0500 Subject: [PATCH] fix: Off-by-1 enum terminator value --- mesh/dfu/api/nrf_mesh_dfu_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/dfu/api/nrf_mesh_dfu_types.h b/mesh/dfu/api/nrf_mesh_dfu_types.h index da7f8aa..4315533 100644 --- a/mesh/dfu/api/nrf_mesh_dfu_types.h +++ b/mesh/dfu/api/nrf_mesh_dfu_types.h @@ -153,7 +153,7 @@ typedef enum NRF_MESH_DFU_END_ERROR_BANK_AND_DESTINATION_OVERLAP, /**< When copying the finished bank to its intended destination, it will have to overwrite itself. */ /** @internal Largest number in the enum. */ - NRF_MESH_DFU_END_ERROR__LAST = NRF_MESH_DFU_END_ERROR_BANK_IN_BOOTLOADER_AREA, + NRF_MESH_DFU_END_ERROR__LAST = NRF_MESH_DFU_END_ERROR_BANK_AND_DESTINATION_OVERLAP, } nrf_mesh_dfu_end_t; /** The various roles a device can play in a dfu transfer. */