Library of hardware declarations and utility functions for the ELEC350/1 Practicals and Coursework

Dependents:   Task618-mbedos-F429ZI Task621-mbedos_FZ429ZI Task622-mbedos-FZ429ZI Task632-mbedos-FZ429 ... more

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Thu Nov 23 14:01:24 2017 +0000
Parent:
5:58ba1a6dbf60
Child:
7:d0e445a97c60
Commit message:
Improved POST

Changed in this revision

sample_hardware.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sample_hardware.cpp	Thu Nov 23 10:54:10 2017 +0000
+++ b/sample_hardware.cpp	Thu Nov 23 14:01:24 2017 +0000
@@ -69,18 +69,18 @@
 
 void errorCode(ELEC350_ERROR_CODE err)
 {
-            switch (err) {
-              case OK:
-                greenLED = 1;
-                wait(1.0);
-                greenLED = 0;
-                return;                
-              case FATAL:
-                while(1) {
-                    redLED = 1;
-                    wait(0.1);
-                    redLED = 0;
-                    wait(0.1);                
-                }
-            };
+    switch (err) {
+      case OK:
+        greenLED = 1;
+        wait(1.0);
+        greenLED = 0;
+        return;                
+      case FATAL:
+        while(1) {
+            redLED = 1;
+            wait(0.1);
+            redLED = 0;
+            wait(0.1);                
+        }
+    };
 }
\ No newline at end of file