Commit 351ddaf8 authored by Rahix's avatar Rahix
Browse files

chore(libcard10): Fix all sign-compare warnings



Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 309d1292
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment