From 7b602a60f1350394f8f3610edc676c4e695414f2 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 8 May 2019 22:38:49 +0200 Subject: [PATCH] fixed protocol bugs (0=true and 1=false) --- src/protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocol.rs b/src/protocol.rs index e6297eb..3828813 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -88,8 +88,8 @@ impl Protocol { Err(_e) => return Err("ERR index not a number") }; let value = match arguments[2] { - "0" => true, - "1" => false, + "1" => true, + "0" => false, _ => return Err("ERR no value for segment") }; if RPI {