Skip to content

Commit 4f8a1b2

Browse files
committed
Fix compiler warning: control reaches end of non-void function
Fix #44 cores/arduino/wiring_digital.c:90:1: warning: control reaches end of non-void function [-Wreturn-type] } Signed-off-by: Frederic.Pillon <[email protected]>
1 parent b696486 commit 4f8a1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/wiring_digital.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ int digitalRead( uint32_t ulPin )
8686
if(is_pin_configured(p, g_digPinConfigured)) {
8787
level = digital_io_read(get_GPIO_Port(STM_PORT(p)), STM_GPIO_PIN(p));
8888
}
89-
return (level)? HIGH : LOW;
9089
}
90+
return (level)? HIGH : LOW;
9191
}
9292

9393
#ifdef __cplusplus

0 commit comments

Comments
 (0)