From 4e5de7831baadc4253c37e185797209fbd953ba7 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 18 Sep 2019 23:25:40 +0200 Subject: [PATCH] command_parser: fix non-optional whitespace after `report` --- firmware/src/command_parser.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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,