mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/periph_rtt: replace fixed buffer by riot_msg size
This commit is contained in:
parent
ebc869a83f
commit
f0f9a026fc
@ -65,7 +65,7 @@ static void _set_rtc_mem(void)
|
|||||||
|
|
||||||
static void _get_rtc_mem(void)
|
static void _get_rtc_mem(void)
|
||||||
{
|
{
|
||||||
char buf[4];
|
char buf[sizeof(riot_msg) - 1];
|
||||||
rtc_mem_read(riot_msg_offset, buf, sizeof(buf));
|
rtc_mem_read(riot_msg_offset, buf, sizeof(buf));
|
||||||
|
|
||||||
if (memcmp(buf, riot_msg, sizeof(buf))) {
|
if (memcmp(buf, riot_msg, sizeof(buf))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user