[riot-notifications] [RIOT-OS/RIOT] stm32/flashpage: Add common stm32_flashpage_block_t type (#15467)

Alexandre Abadie notifications at github.com
Wed Nov 18 12:28:59 CET 2020


@aabadie commented on this pull request.



> @@ -116,16 +99,16 @@ static void _erase_page(void *page_addr)
     DEBUG("address to erase: %p\n", page_addr);
 #if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1)
     DEBUG("[flashpage] erase: trigger the page erase\n");
-    *dst = (uint32_t)0;
+    *(uint32_t*)page_addr = 0;

```suggestion
    *(uint32_t *)page_addr = 0;
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15467#pullrequestreview-533351993
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201118/78c24b66/attachment.htm>


More information about the notifications mailing list