Mercurial > louis > kiibohd-controller
comparison Output/pjrcUSB/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 |
---|---|
482 | 482 |
483 break; | 483 break; |
484 } | 484 } |
485 } | 485 } |
486 | 486 |
487 void Output_flashMode_capability( uint8_t state, uint8_t stateType, uint8_t *args ) | |
488 { | |
489 // Display capability name | |
490 if ( stateType == 0xFF && state == 0xFF ) | |
491 { | |
492 print("Output_flashMode(usbCode)"); | |
493 return; | |
494 } | |
495 | |
496 // Start flash mode | |
497 Output_firmwareReload(); | |
498 } | |
499 | |
487 | 500 |
488 | 501 |
489 // ----- Functions ----- | 502 // ----- Functions ----- |
490 | 503 |
491 // Flush Key buffers | 504 // Flush Key buffers |