Skip to content

Commit f8a939b

Browse files
author
Fabian Schuette
committed
fixes arduino#103 Misleadingly 'else' clause
1 parent eed66e7 commit f8a939b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: cores/arduino/USB/USBCore.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -684,10 +684,14 @@ static void USB_ISR(void)
684684
// Send the endpoint status
685685
// Check if the endpoint if currently halted
686686
if( isEndpointHalt == 1 )
687-
UDD_Send8(EP0, 1); // TODO
687+
{
688+
UDD_Send8(EP0, 1); // TODO
689+
}
688690
else
689-
UDD_Send8(EP0, 0); // TODO
690-
UDD_Send8(EP0, 0);
691+
{
692+
UDD_Send8(EP0, 0); // TODO
693+
}
694+
UDD_Send8(EP0, 0);
691695
}
692696
}
693697
else if (CLEAR_FEATURE == r)

0 commit comments

Comments
 (0)