1
0
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:
Gunar Schorcht 2023-02-06 22:21:19 +01:00
parent ebc869a83f
commit f0f9a026fc

View File

@ -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))) {