diff --git a/firmware/src/command_parser.rs b/firmware/src/command_parser.rs index 15e6166..7ab332a 100644 --- a/firmware/src/command_parser.rs +++ b/firmware/src/command_parser.rs @@ -127,10 +127,7 @@ fn off_on(input: &[u8]) -> IResult<&[u8], bool> { fn report(input: &[u8]) -> IResult<&[u8], Command> { preceded( - preceded( - tag("report"), - whitespace - ), + tag("report"), alt(( preceded( whitespace,