Quick patch unrealistic face roll keyboard corruption
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user