mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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)
|
||||
{
|
||||
char buf[4];
|
||||
char buf[sizeof(riot_msg) - 1];
|
||||
rtc_mem_read(riot_msg_offset, buf, sizeof(buf));
|
||||
|
||||
if (memcmp(buf, riot_msg, sizeof(buf))) {
|
||||
|
Loading…
Reference in New Issue
Block a user