Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of NNN40_CLI by
Diff: CLI_Source/command-interpreter.cpp
- Revision:
- 13:7eaec228ad23
- Parent:
- 9:ff3ccba5dc16
- Child:
- 20:bd1760975052
--- a/CLI_Source/command-interpreter.cpp	Thu Feb 18 07:59:26 2016 +0000
+++ b/CLI_Source/command-interpreter.cpp	Thu Feb 25 07:22:37 2016 +0000
@@ -91,7 +91,21 @@
 	
 	return result;
 }
-
+int cyntecAtoInt(uint8_t *str, uint8_t len)
+{
+	int result = 0;
+	uint8_t i = 0;
+	
+	while( *str != '\0' && i < len)
+	{
+		result *= 10;
+		result = result + ( *str - '0' );
+		str++;
+		i++;
+	}
+	
+	return result;
+}
 uint8_t cyntecArgToUint8(uint8_t *str, uint8_t len)
 {
 	uint8_t result = 0;
    