diff Output/usbMuxUart/output_com.c @ 195:58cfcb7bac88

Changing decToInt to numToInt (adds support for Hex number interpreter) - CLI now works with hex or decimal numbers - Hex requires 0x (technically just x would work too)
author Jacob Alexander <haata@kiibohd.com>
date Sat, 16 Aug 2014 12:07:25 -0700
parents 6ac92b8614c0
children ed05fa3555d4
line wrap: on
line diff
--- a/Output/usbMuxUart/output_com.c	Fri Aug 15 11:27:16 2014 -0700
+++ b/Output/usbMuxUart/output_com.c	Sat Aug 16 12:07:25 2014 -0700
@@ -278,7 +278,7 @@
 			break;
 
 		// Add the USB code to be sent
-		USBKeys_ArrayCLI[USBKeys_SentCLI] = decToInt( arg1Ptr );
+		USBKeys_ArrayCLI[USBKeys_SentCLI] = numToInt( arg1Ptr );
 	}
 }
 
@@ -291,6 +291,6 @@
 	char* arg2Ptr;
 	CLI_argumentIsolation( args, &arg1Ptr, &arg2Ptr );
 
-	USBKeys_ModifiersCLI = decToInt( arg1Ptr );
+	USBKeys_ModifiersCLI = numToInt( arg1Ptr );
 }