Return -1 for not implemented RTC functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29546 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cc6cc53737
commit
294d058034
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ int set_time(const struct tm *tm)
|
|||
}
|
||||
#else /* No RTC */
|
||||
(void)tm;
|
||||
return 0;
|
||||
return -1;
|
||||
#endif /* RTC */
|
||||
}
|
||||
|
||||
|
|
|
@ -36,5 +36,5 @@ int rtc_read_datetime(struct tm *tm)
|
|||
int rtc_write_datetime(const struct tm *tm)
|
||||
{
|
||||
(void)tm;
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue