clean up
This commit is contained in:
		| @@ -41,7 +41,6 @@ | |||||||
| #include "nrf_sdm.h" | #include "nrf_sdm.h" | ||||||
|  |  | ||||||
| #define FLASH_PAGE_SIZE           4096 | #define FLASH_PAGE_SIZE           4096 | ||||||
|  |  | ||||||
| #define FLASH_CACHE_INVALID_ADDR  0xffffffff | #define FLASH_CACHE_INVALID_ADDR  0xffffffff | ||||||
|  |  | ||||||
| static uint32_t _fl_addr = FLASH_CACHE_INVALID_ADDR; | static uint32_t _fl_addr = FLASH_CACHE_INVALID_ADDR; | ||||||
|   | |||||||
| @@ -181,7 +181,6 @@ int main(void) | |||||||
|   // DFU + FRESET are pressed --> OTA |   // DFU + FRESET are pressed --> OTA | ||||||
|   _ota_dfu = _ota_dfu  || ( button_pressed(BUTTON_DFU) && button_pressed(BUTTON_FRESET) ) ; |   _ota_dfu = _ota_dfu  || ( button_pressed(BUTTON_DFU) && button_pressed(BUTTON_FRESET) ) ; | ||||||
|  |  | ||||||
|  |  | ||||||
|   bool const valid_app = bootloader_app_is_valid(DFU_BANK_0_REGION_START); |   bool const valid_app = bootloader_app_is_valid(DFU_BANK_0_REGION_START); | ||||||
|  |  | ||||||
|   // App mode: register 1st reset and DFU startup (nrf52832) |   // App mode: register 1st reset and DFU startup (nrf52832) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user