[riot-notifications] [RIOT-OS/RIOT] drivers/periph: define rtc_mem and implement it for sam0_common (#16758)

Francisco notifications at github.com
Fri Sep 3 09:56:03 CEST 2021


@fjmolinas commented on this pull request.



> +        return;
+    }
+
+    uint8_t size = rtc_mem_size();
+    while (size--) {
+        uint8_t data;
+
+        if (size >= riot_msg_offset &&
+            size < riot_msg_offset + sizeof(riot_msg)) {
+            continue;
+        }
+
+        rtc_mem_read(size, &data, 1);
+        if (data != size) {
+            puts("RTC mem content does not match");
+            printf("%0x2: %0x2\n", size, data);

```suggestion
            printf("%02x: %02x\n", size, data);
```

-- 
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/16758#pullrequestreview-745826488
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210903/a50243cf/attachment.htm>


More information about the notifications mailing list