diff Output/pjrcUSB/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 326f75709d10
line wrap: on
line diff
--- a/Output/pjrcUSB/output_com.c	Fri Aug 15 11:27:16 2014 -0700
+++ b/Output/pjrcUSB/output_com.c	Sat Aug 16 12:07:25 2014 -0700
@@ -276,7 +276,7 @@
 			break;
 
 		// Add the USB code to be sent
-		USBKeys_ArrayCLI[USBKeys_SentCLI] = decToInt( arg1Ptr );
+		USBKeys_ArrayCLI[USBKeys_SentCLI] = numToInt( arg1Ptr );
 	}
 }
 
@@ -289,6 +289,6 @@
 	char* arg2Ptr;
 	CLI_argumentIsolation( args, &arg1Ptr, &arg2Ptr );
 
-	USBKeys_ModifiersCLI = decToInt( arg1Ptr );
+	USBKeys_ModifiersCLI = numToInt( arg1Ptr );
 }