Quick patch unrealistic face roll keyboard corruption
This commit is contained in:
parent
373ca8355e
commit
a882ef2c38
@ -163,9 +163,14 @@ class Firmware:
|
|||||||
update[1],
|
update[1],
|
||||||
update[2],
|
update[2],
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except IndexError:
|
||||||
print(e)
|
# If buffer get's corrupted, reset the master half.
|
||||||
print(update)
|
# 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):
|
def _send_to_master(self, update):
|
||||||
if self.split_master_left:
|
if self.split_master_left:
|
||||||
|
@ -10,7 +10,7 @@ keyboard.leader_mode = LeaderMode.TIMEOUT
|
|||||||
keyboard.unicode_mode = UnicodeMode.LINUX
|
keyboard.unicode_mode = UnicodeMode.LINUX
|
||||||
keyboard.tap_time = 150
|
keyboard.tap_time = 150
|
||||||
keyboard.leader_timeout = 2000
|
keyboard.leader_timeout = 2000
|
||||||
keyboard.debug_enabled = True
|
keyboard.debug_enabled = False
|
||||||
|
|
||||||
# RGB Config (underglow)
|
# RGB Config (underglow)
|
||||||
keyboard.rgb_num_pixels = 12
|
keyboard.rgb_num_pixels = 12
|
Loading…
x
Reference in New Issue
Block a user