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

Dependents:   ELEC351_v1 ELEC350-CWTEMPLATE-2017 ELEC350-CWTEMPLATE-2017 ELEC350-CWTEMPLATE-2018

Fork of ELEC350-Practicals-FZ429 by University of Plymouth - Stages 1, 2 and 3

Revision:
6:d95616e645bb
Parent:
5:58ba1a6dbf60
Child:
7:d0e445a97c60
--- 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