projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure the DFU bootloader disables and clears the activity LED toggle timer when...
[pub/USBasp.git]
/
Projects
/
SerialToLCD
/
SerialToLCD.c
diff --git
a/Projects/SerialToLCD/SerialToLCD.c
b/Projects/SerialToLCD/SerialToLCD.c
index
59522b3
..
952e2d4
100644
(file)
--- a/
Projects/SerialToLCD/SerialToLCD.c
+++ b/
Projects/SerialToLCD/SerialToLCD.c
@@
-99,27
+99,28
@@
int main(void)
while (RingBuffer_GetCount(&FromHost_Buffer) > 0)
{
while (RingBuffer_GetCount(&FromHost_Buffer) > 0)
{
- static uint8_t
escape_p
ending = 0;
+ static uint8_t
EscapeP
ending = 0;
int16_t HD44780Byte = RingBuffer_Remove(&FromHost_Buffer);
if (HD44780Byte == COMMAND_ESCAPE)
{
int16_t HD44780Byte = RingBuffer_Remove(&FromHost_Buffer);
if (HD44780Byte == COMMAND_ESCAPE)
{
- if (
escape_p
ending)
+ if (
EscapeP
ending)
{
HD44780_WriteData(HD44780Byte);
{
HD44780_WriteData(HD44780Byte);
-
escape_p
ending = 0;
+
EscapeP
ending = 0;
}
else
{
}
else
{
- escape_pending = 1;
+ /* Next received character is the command byte */
+ EscapePending = 1;
}
}
else
{
}
}
else
{
- if (
escape_p
ending)
+ if (
EscapeP
ending)
{
HD44780_WriteCommand(HD44780Byte);
{
HD44780_WriteCommand(HD44780Byte);
-
escape_p
ending = 0;
+
EscapeP
ending = 0;
}
else
{
}
else
{
@@
-157,9
+158,7
@@
void SetupHardware(void)
/** Event handler for the library USB Configuration Changed event. */
void EVENT_USB_Device_ConfigurationChanged(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. */
}
/** Event handler for the library USB Control Request reception event. */