Skip to content

Commit 80a8293

Browse files
committed
core:siwigsm:Fix no return value for digitalRead
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 5fbe15a commit 80a8293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/siwigsm/wiring_digital.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int digitalRead( uint32_t ulPin )
9090
{
9191
/* Not a GPIO */
9292
if (ulPin >= GPIO_PIN_MAX)
93-
return;
93+
return LOW;
9494

9595
if (g_ioHandles[ulPin] == 0) {
9696
/* Fresh IO request */

0 commit comments

Comments
 (0)