Skip to content
Snippets Groups Projects
Commit 351ddaf8 authored by rahix's avatar rahix
Browse files

chore(libcard10): Fix all sign-compare warnings


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 309d1292
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ void card10_init(void)
)
;
/* If we don't have a valid time yet, set it to 2019-01-01 */
if (RTC_GetSecond() < 1546300800UL) {
if (RTC_GetSecond() < 1546300800L) {
while (RTC_Init(MXC_RTC, 1546300800UL, 0, NULL) == E_BUSY)
;
}
......
......@@ -100,7 +100,7 @@ int portexpander_init(void)
// Enable pull-ups for buttons
// Enable outputs for the transistors, the LED and the LCD reset
for (int i = 0; i < sizeof(pe_pin_config) / sizeof(pe_pin_config[0]);
for (size_t i = 0; i < sizeof(pe_pin_config) / sizeof(pe_pin_config[0]);
i++) {
ret = portexpander_config(&pe_pin_config[i]);
MXC_ASSERT(ret == E_NO_ERROR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment