Mercurial > louis > kiibohd-controller
diff Output/usbMuxUart/output_com.c @ 370:39e338a6733d
Fixing default ErgoDox layout and adding FlashMode button
- Adds proper flashMode support for all keyboards and microcontrollers (usb and serial)
- flashModeEnabled must be set to 1 otherwise it will only show an error
* This is on purpose (somewhat dangerous feature as it allows remote flashing)
- Capability cleanup
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Fri, 21 Aug 2015 19:43:45 -0700 |
parents | 136e47478441 |
children | d8f61e15aca1 |
line wrap: on
line diff
--- a/Output/usbMuxUart/output_com.c Fri Aug 21 18:26:46 2015 -0700 +++ b/Output/usbMuxUart/output_com.c Fri Aug 21 19:43:45 2015 -0700 @@ -490,6 +490,19 @@ } } +void Output_flashMode_capability( uint8_t state, uint8_t stateType, uint8_t *args ) +{ + // Display capability name + if ( stateType == 0xFF && state == 0xFF ) + { + print("Output_flashMode(usbCode)"); + return; + } + + // Start flash mode + Output_firmwareReload(); +} + // ----- Functions -----