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: LambdaController.cpp
- Revision:
- 1:3785af7e715e
- Parent:
- 0:728c138f0486
- Child:
- 2:cf08273cbd94
diff -r 728c138f0486 -r 3785af7e715e LambdaController.cpp
--- a/LambdaController.cpp	Sat Nov 12 03:55:50 2016 +0000
+++ b/LambdaController.cpp	Sat Nov 12 09:05:29 2016 +0000
@@ -91,7 +91,13 @@
             }
             else
             {
-                error_id = InvalidDataError;
+                //error_id = InvalidDataError;
+                if(buffer_head == -1)
+                    error_id = (ErrorFactor)10;
+                else if(buffer_head == 11)
+                    error_id = (ErrorFactor)(data + 1);
+                else
+                    error_id = (ErrorFactor)12;
                 buffer_head = -1;
             }