Quick patch unrealistic face roll keyboard corruption

This commit is contained in:
Kyle Brown committed 2019-06-21 16:47:00 -07:00
1 parent 373ca8355e
commit a882ef2c38
5 files changed
+9 -4

No files matched your search

+8 -3
View File
@@ -163,9 +163,14 @@ class Firmware:
update[1],
update[2],
)
except Exception as e:
print(e)
print(update)
except IndexError:
# If buffer get's corrupted, reset the master half.
# Alternative would be flush the contents and release all keys
import microcontroller
microcontroller.reset()
def _flush_buffer(self):
self.uart.read()
def _send_to_master(self, update):
if self.split_master_left:
File renamed without changes.
File renamed without changes.
@@ -10,7 +10,7 @@ keyboard.leader_mode = LeaderMode.TIMEOUT
keyboard.unicode_mode = UnicodeMode.LINUX
keyboard.tap_time = 150
keyboard.leader_timeout = 2000
keyboard.debug_enabled = True
keyboard.debug_enabled = False
# RGB Config (underglow)
keyboard.rgb_num_pixels = 12
File renamed without changes.