Skip to content

Commit

Permalink
fixes #103 Misleadingly 'else' clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Schuette authored and cmaglie committed Sep 17, 2020
1 parent 5f0b387 commit 790ff2c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions cores/arduino/USB/USBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,13 @@ static void USB_ISR(void)
// Send the endpoint status
// Check if the endpoint if currently halted
if( isEndpointHalt == 1 )
UDD_Send8(EP0, 1); // TODO
{
UDD_Send8(EP0, 1); // TODO
}
else
UDD_Send8(EP0, 0); // TODO
{
UDD_Send8(EP0, 0); // TODO
}
UDD_Send8(EP0, 0);
}
}
Expand All @@ -697,9 +701,13 @@ static void USB_ISR(void)
{
// Enable remote wake-up and send a ZLP
if( isRemoteWakeUpEnabled == 1 )
UDD_Send8(EP0, 1);
{
UDD_Send8(EP0, 1);
}
else
UDD_Send8(EP0, 0);
{
UDD_Send8(EP0, 0);
}
UDD_Send8(EP0, 0);
}
else // if( setup.wValueL == 0) // ENDPOINTHALT
Expand Down

0 comments on commit 790ff2c

Please sign in to comment.