Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
e7670d06
Commit
e7670d06
authored
13 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Minor formatting updates to the SerialToLCD project - remove unused variable.
parent
bd3f6794
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projects/SerialToLCD/SerialToLCD.c
+8
-9
8 additions, 9 deletions
Projects/SerialToLCD/SerialToLCD.c
with
8 additions
and
9 deletions
Projects/SerialToLCD/SerialToLCD.c
+
8
−
9
View file @
e7670d06
...
...
@@ -99,27 +99,28 @@ int main(void)
while
(
RingBuffer_GetCount
(
&
FromHost_Buffer
)
>
0
)
{
static
uint8_t
e
scape
_p
ending
=
0
;
static
uint8_t
E
scape
P
ending
=
0
;
int16_t
HD44780Byte
=
RingBuffer_Remove
(
&
FromHost_Buffer
);
if
(
HD44780Byte
==
COMMAND_ESCAPE
)
{
if
(
e
scape
_p
ending
)
if
(
E
scape
P
ending
)
{
HD44780_WriteData
(
HD44780Byte
);
e
scape
_p
ending
=
0
;
E
scape
P
ending
=
0
;
}
else
{
escape_pending
=
1
;
/* Next received character is the command byte */
EscapePending
=
1
;
}
}
else
{
if
(
e
scape
_p
ending
)
if
(
E
scape
P
ending
)
{
HD44780_WriteCommand
(
HD44780Byte
);
e
scape
_p
ending
=
0
;
E
scape
P
ending
=
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. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment