Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
369:ce9720634c15 | 370:39e338a6733d |
---|---|
488 | 488 |
489 break; | 489 break; |
490 } | 490 } |
491 } | 491 } |
492 | 492 |
493 void Output_flashMode_capability( uint8_t state, uint8_t stateType, uint8_t *args ) | |
494 { | |
495 // Display capability name | |
496 if ( stateType == 0xFF && state == 0xFF ) | |
497 { | |
498 print("Output_flashMode(usbCode)"); | |
499 return; | |
500 } | |
501 | |
502 // Start flash mode | |
503 Output_firmwareReload(); | |
504 } | |
505 | |
493 | 506 |
494 | 507 |
495 // ----- Functions ----- | 508 // ----- Functions ----- |
496 | 509 |
497 // Flush Key buffers | 510 // Flush Key buffers |