Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
cc50cfb7
Commit
cc50cfb7
authored
Apr 21, 2021
by
Eric Duminil
Browse files
Removing warning
parent
9f6604b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/sensor_console.cpp
View file @
cc50cfb7
...
...
@@ -20,7 +20,7 @@ namespace sensor_console {
//NOTE: Probably possible to DRY (with templates?)
void
defineCommand
(
const
char
*
name
,
void
(
*
function
)(
void
),
const
__FlashStringHelper
*
doc_fstring
)
{
const
char
*
doc
=
(
const
char
PROGMEM
*
)
doc_fstring
;
const
char
*
doc
=
(
const
char
*
)
doc_fstring
;
if
(
commands_count
<
MAX_COMMANDS
)
{
commands
[
commands_count
].
name
=
name
;
commands
[
commands_count
].
voidFunction
=
function
;
...
...
@@ -33,7 +33,7 @@ namespace sensor_console {
}
void
defineIntCommand
(
const
char
*
name
,
void
(
*
function
)(
int32_t
),
const
__FlashStringHelper
*
doc_fstring
)
{
const
char
*
doc
=
(
const
char
PROGMEM
*
)
doc_fstring
;
const
char
*
doc
=
(
const
char
*
)
doc_fstring
;
if
(
commands_count
<
MAX_COMMANDS
)
{
commands
[
commands_count
].
name
=
name
;
commands
[
commands_count
].
intFunction
=
function
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment