diff options
| author | Joaquim <joaquim.org@gmail.com> | 2021-04-26 20:29:48 (GMT) |
|---|---|---|
| committer | Joaquim <joaquim.org@gmail.com> | 2021-04-26 20:29:48 (GMT) |
| commit | cd0d85dff95bbc5f285d92eb78a642aab1ae4b8b (patch) | |
| tree | fc568aa2516c8c64cc55eb0d08e9a929c11b454a /src/drivers/InternalFlash.cpp | |
| parent | 5fc07a8df7d18d1fa9c4971f2c7b69ea68db559b (diff) | |
| parent | eedff2c06c292bda8dcb92fc04c67097fe72e22f (diff) | |
Merge branch 'develop' of
https://github.com/JF002/InfiniTime into StepsApp
Diffstat (limited to 'src/drivers/InternalFlash.cpp')
| -rw-r--r-- | src/drivers/InternalFlash.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/InternalFlash.cpp b/src/drivers/InternalFlash.cpp index 33c1447..0840c6e 100644 --- a/src/drivers/InternalFlash.cpp +++ b/src/drivers/InternalFlash.cpp @@ -25,7 +25,7 @@ void InternalFlash::WriteWord(uint32_t address, uint32_t value) { __DSB(); // Write word - *(uint32_t*)address = value; + *(uint32_t*) address = value; Wait(); // Disable write @@ -35,5 +35,7 @@ void InternalFlash::WriteWord(uint32_t address, uint32_t value) { } void InternalFlash::Wait() { - while (NRF_NVMC->READY == NVMC_READY_READY_Busy) {;} + while (NRF_NVMC->READY == NVMC_READY_READY_Busy) { + ; + } } |
