diff options
| author | JF <jf@codingfield.com> | 2020-06-01 07:22:54 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-06-01 07:22:54 (GMT) |
| commit | dca559aad5a5020ae0d5c1bec08bbf5030e0d718 (patch) | |
| tree | df449fb41a14bb321e69f19f646109c2fb79d093 /src/CMakeLists.txt | |
| parent | 4717cf0a1d6c210a362e8bdf63265c4910e2c8cc (diff) | |
Improve DFU procedure :
- correctly write all bytes to flash
- check CRC
- Fix bug in notification : they cannot be sent from the control point handler (because it seems you cannot send a notification and a write acknowledge at the same time) using a timer (quick'n'dirty implementation to be improved)
- Improve dfu screen
- Reset if dfu image is correctly copied into flash and crc is ok.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c0a46ed..c37a05a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -355,6 +355,7 @@ list(APPEND SOURCE_FILES Components/Ble/DfuService.cpp Components/Ble/CurrentTimeService.cpp Components/Ble/AlertNotificationService.cpp + Components/Ble/DfuImage.cpp drivers/Cst816s.cpp FreeRTOS/port.c FreeRTOS/port_cmsis_systick.c @@ -408,6 +409,7 @@ set(INCLUDE_FILES Components/Ble/CurrentTimeClient.h Components/Ble/AlertNotificationClient.h Components/Ble/DfuService.h + Components/Ble/DfuImage.h drivers/Cst816s.h FreeRTOS/portmacro.h FreeRTOS/portmacro_cmsis.h |
