Make Benito ping-pong LED code more explicit, using masks of the TX and RX LED masks for ping-pong toggle rather than the ambiguous LED "Busy" mask.

Fix incorrect event name in MassStorageHost.c.
This commit is contained in:
Dean Camera 2009-08-07 00:27:11 +00:00
parent 33a5715e91
commit 85c2716f2d
4 changed files with 12 additions and 9 deletions

View file

@ -102,7 +102,7 @@ int main(void)
/* Check if the LEDs should be ping-ponging (during enumeration) */
if (PingPongMSRemaining && !(--PingPongMSRemaining))
{
LEDs_ToggleLEDs(LEDMASK_BUSY);
LEDs_ToggleLEDs(LEDMASK_TX | LEDMASK_RX);
PingPongMSRemaining = PING_PONG_LED_PULSE_MS;
}