Skip to content
Snippets Groups Projects
Commit 5d34f19c authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Do not accept extra bytes after WHO_AM_I command

parent a871fb06
No related branches found
No related tags found
No related merge requests found
Pipeline #97632 passed
...@@ -78,7 +78,7 @@ fn process_command( ...@@ -78,7 +78,7 @@ fn process_command(
response.push(b).unwrap(); response.push(b).unwrap();
} }
} }
[CMD_WHO_AM_I, ..] => { [CMD_WHO_AM_I] => {
response.push(0x57).unwrap(); response.push(0x57).unwrap();
} }
&[CMD_PWM_FREQUENCY, a, b, c] => { &[CMD_PWM_FREQUENCY, a, b, c] => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment