1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #13859 from disconnect3d/patch-1

shell_commands/rtc: Fix off by one when checking for clearalarm command
This commit is contained in:
Alexandre Abadie 2020-05-14 21:20:06 +02:00 committed by GitHub
commit 608207c4fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ int _rtc_handler(int argc, char **argv)
else if (strncmp(argv[1], "poweroff", 8) == 0) {
rtc_poweroff();
}
else if (strncmp(argv[1], "clearalarm", 8) == 0) {
else if (strncmp(argv[1], "clearalarm", 10) == 0) {
rtc_clear_alarm();
}
else if (strncmp(argv[1], "getalarm", 8) == 0) {