reverse color change

This commit is contained in:
Chris
2018-10-18 22:58:34 +02:00
parent 9d6a009f49
commit 591d25f74a
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -98,12 +98,10 @@ impl Drawing<Color> for DisplayEink42BlackWhite {
match color {
Color::Black => {
//self.buffer[idx] &= !bit;
self.buffer[idx] |= bit;
self.buffer[idx] &= !bit;
}
Color::White => {
//self.buffer[idx] |= bit;
self.buffer[idx] &= !bit;
self.buffer[idx] |= bit;
}
}
}