Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rampinglight
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Greiner
rampinglight
Commits
f1de06b7
Commit
f1de06b7
authored
Dec 27, 2018
by
Sven Greiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add defines for number of presses
parent
8a402eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
rampinglight.c
rampinglight.c
+9
-5
No files found.
rampinglight.c
View file @
f1de06b7
...
...
@@ -52,6 +52,10 @@
#define EEPROM_OPTIONS (EEPROM_SIZE-1)
#define EEPROM_OUTPUT_WL_BYTES 16
#define TURBO_PRESSES 2
#define BATTCHECK_PRESSES FIXED_SIZE+1
#define CONFIG_PRESSES 10
/**
* States of the state machine.
*/
...
...
@@ -370,12 +374,12 @@ int main(void) {
if
(
options
.
fixed_mode
)
{
switch
(
fast_presses
)
{
#ifdef BATTCHECK
case
FIXED_SIZE
+
1
:
case
BATTCHECK_PRESSES
:
state
=
kBattcheck
;
break
;
#endif // ifdef BATTCHECK
case
10
:
case
CONFIG_PRESSES
:
state
=
kConfig
;
break
;
...
...
@@ -387,17 +391,17 @@ int main(void) {
}
}
else
{
switch
(
fast_presses
)
{
case
2
:
case
TURBO_PRESSES
:
state
=
kTurbo
;
break
;
#ifdef BATTCHECK
case
FIXED_SIZE
+
1
:
case
BATTCHECK_PRESSES
:
state
=
kBattcheck
;
break
;
#endif // ifdef BATTCHECK
case
10
:
case
CONFIG_PRESSES
:
state
=
kConfig
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment