Skip to content

Commit 887f64e

Browse files
authored
Merge pull request #2376 from dhalbert/nrf-internal-flash-volatile-fix
nrf: sd_flash_operation_status should be volatile
2 parents bf8796b + fd03fd5 commit 887f64e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/nrf/bluetooth/ble_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
nrf_nvic_state_t nrf_nvic_state = { 0 };
4444

4545
// Flag indicating progress of internal flash operation.
46-
sd_flash_operation_status_t sd_flash_operation_status;
46+
volatile sd_flash_operation_status_t sd_flash_operation_status;
4747

4848
__attribute__((aligned(4)))
4949
static uint8_t m_ble_evt_buf[sizeof(ble_evt_t) + (BLE_GATT_ATT_MTU_DEFAULT)];

ports/nrf/bluetooth/ble_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef enum {
5959
} sd_flash_operation_status_t;
6060

6161
// Flag indicating progress of internal flash operation.
62-
extern sd_flash_operation_status_t sd_flash_operation_status;
62+
extern volatile sd_flash_operation_status_t sd_flash_operation_status;
6363

6464
typedef struct ble_drv_evt_handler_entry {
6565
struct ble_drv_evt_handler_entry *next;

0 commit comments

Comments
 (0)