aboutsummaryrefslogtreecommitdiff
path: root/Projects
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-04-15 10:00:14 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-04-15 10:00:14 +0000
commite752ebe828275d582a995ea1b73d0bc631f9b8c2 (patch)
tree9af2dacbc5e81efc97425244310dfc496e71658e /Projects
parente649e3acd22981f3c661a161e37a0dc293949691 (diff)
Minor formatting updates to the SerialToLCD project - remove unused variable.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2160 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects')
-rw-r--r--Projects/SerialToLCD/SerialToLCD.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/Projects/SerialToLCD/SerialToLCD.c b/Projects/SerialToLCD/SerialToLCD.c
index 59522b35..952e2d4f 100644
--- a/Projects/SerialToLCD/SerialToLCD.c
+++ b/Projects/SerialToLCD/SerialToLCD.c
@@ -99,27 +99,28 @@ int main(void)
while (RingBuffer_GetCount(&FromHost_Buffer) > 0)
{
- static uint8_t escape_pending = 0;
+ static uint8_t EscapePending = 0;
int16_t HD44780Byte = RingBuffer_Remove(&FromHost_Buffer);
if (HD44780Byte == COMMAND_ESCAPE)
{
- if (escape_pending)
+ if (EscapePending)
{
HD44780_WriteData(HD44780Byte);
- escape_pending = 0;
+ EscapePending = 0;
}
else
{
- escape_pending = 1;
+ /* Next received character is the command byte */
+ EscapePending = 1;
}
}
else
{
- if (escape_pending)
+ if (EscapePending)
{
HD44780_WriteCommand(HD44780Byte);
- escape_pending = 0;
+ EscapePending = 0;
}
else
{
@@ -157,9 +158,7 @@ void SetupHardware(void)
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(void)
{
- bool ConfigSuccess = true;
-
- ConfigSuccess &= CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
+ CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);
}
/** Event handler for the library USB Control Request reception event. */