diff Output/uartOut/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 ab4515606277
children
line wrap: on
line diff
--- a/Output/uartOut/output_com.c	Fri Aug 21 18:26:46 2015 -0700
+++ b/Output/uartOut/output_com.c	Fri Aug 21 19:43:45 2015 -0700
@@ -129,6 +129,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 -----