aboutsummaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
commit200821fe827230570e253c1679f00bcdb6c5bd94 (patch)
tree0aed41075af0b12258d1dee1c3946e61e9e4d0e0 /Projects
parent3991c94b3858bbb02ca9ea6497cf60c84635b99a (diff)
downloadlufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.gz
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.bz2
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.zip
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
Diffstat (limited to 'Projects')
-rw-r--r--Projects/Benito/Benito.c2
-rw-r--r--Projects/MissileLauncher/MissileLauncher.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Projects/Benito/Benito.c b/Projects/Benito/Benito.c
index 1afb74a72..2f0317daa 100644
--- a/Projects/Benito/Benito.c
+++ b/Projects/Benito/Benito.c
@@ -107,7 +107,7 @@ int main(void)
/* Check if the LEDs should be ping-ponging (during enumeration) */
if (PingPongMSRemaining && !(--PingPongMSRemaining))
{
- LEDs_ChangeLEDs(LEDMASK_BUSY, (~LEDs_GetLEDs() & LEDMASK_BUSY));
+ LEDs_ToggleLEDs(LEDMASK_BUSY);
PingPongMSRemaining = PING_PONG_LED_PULSE_MS;
}
diff --git a/Projects/MissileLauncher/MissileLauncher.c b/Projects/MissileLauncher/MissileLauncher.c
index 1ae37044f..50a8009bb 100644
--- a/Projects/MissileLauncher/MissileLauncher.c
+++ b/Projects/MissileLauncher/MissileLauncher.c
@@ -173,7 +173,7 @@ void Send_Command(uint8_t* Command)
if ((CmdState == CMD_STOP && Command != CMD_STOP) ||
(CmdState != CMD_STOP && Command == CMD_STOP))
{
- LEDs_ChangeLEDs(LEDS_LED4, ~LEDs_GetLEDs() & LEDS_LED4);
+ LEDs_ToggleLEDs(LEDS_LED4);
Send_Command_Report(CMD_INITA, 8);
Send_Command_Report(CMD_INITB, 8);