From 22f80d0e391e4cf954b2626fcca684abe91e64a4 Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Sun, 24 Jun 2018 17:16:05 +0200 Subject: [PATCH] Fix color conversion for Pixel --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e331118..d7d9ca8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -300,7 +300,7 @@ where pos.1 as u16, pos.0 as u16, pos.1 as u16, - if color != 0 { &[1] } else { &[0] }, + if color == 0 { &[0xff,0xff] } else { &[0,0] }, ).expect("Failed to communicate with device"); } }