Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
591e2082
Commit
591e2082
authored
Apr 16, 2021
by
Eric Duminil
Browse files
Fewer logs
parent
535710a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/sensor_commands.cpp
View file @
591e2082
...
...
@@ -73,17 +73,14 @@ namespace sensor_commands {
listAvailableCallbacks
();
return
;
}
Serial
.
print
(
"Command : '"
);
Serial
.
print
(
function_name
);
Serial
.
print
(
"'. Parameter : "
);
Serial
.
println
(
parameter
);
for
(
uint8_t
i
=
0
;
i
<
callbacks_count
;
i
++
)
{
if
(
!
strcmp
(
function_name
,
callbacks
[
i
].
name
))
{
Serial
.
print
(
"Function found!!!"
);
Serial
.
print
(
"Trying '"
);
Serial
.
print
(
callbacks
[
i
].
name
);
Serial
.
println
(
"'"
);
Serial
.
print
(
"Calling : "
);
Serial
.
print
(
function_name
);
Serial
.
print
(
"("
);
Serial
.
print
(
parameter
);
Serial
.
println
(
")"
);
callbacks
[
i
].
function
(
parameter
);
return
;
}
...
...
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