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.
Diff: handlers.cpp
- Revision:
- 21:4d6b26eecdac
- Parent:
- 20:2a5e9d9aadbf
- Child:
- 23:0b6901c9302c
--- a/handlers.cpp Fri Jul 19 21:25:24 2013 +0000
+++ b/handlers.cpp Sat Jul 20 16:20:14 2013 +0000
@@ -1,6 +1,6 @@
-//mode_idle_handler converts character inputs to state information, which is used for later stages in main function
-//parse_phase checks data in the line buffer if it's good write the converted value into address adam_pha otherwise returns error code
-//parse_amp checks data in the line buffer if it's good write the converted value into address adam_amp otherwise returns error code
+//The function mode_idle_handler converts character inputs to state information, which is used for later stages in main function
+//The function parse_phase checks data in the line buffer if it's good write the converted value into address adam_pha otherwise returns error code
+//The function parse_amp checks data in the line buffer if it's good write the converted value into address adam_amp otherwise returns error code
#include "parameters.h"
@@ -89,14 +89,14 @@
return PARSE_ERR;
}
*/
- //single digit input single digit is 0,1,2,3,4,5,6,7
+ //Single digit input. single digit is 0,1,2,3,4,5,6,7
if(line_buf[0]>='0' && line_buf[0]<='7' && line_buf[1] == 255 && line_buf[2] == 255)
{
temp = (line_buf[0] - '0')*10;
*adam_amp = temp/5;
return PARSE_OK;
}
- //x.x format input eg. 0.0 0.5 1.5 1.0 to 7.0 7.5
+ //x.x format input eg. 0.0 0.5 1.5 1.0 7.0 7.5 etc
else if(line_buf[0]>='0' && line_buf[0]<='7' && line_buf[2]>='0'&& line_buf[2]<='9' && line_buf[1] == '.')
{
temp = (line_buf[0] - '0')*10;