Cleaner code

Dependencies:   mbed C12832

Files at this revision

API Documentation at this revision

Comitter:
ciaranom
Date:
Fri Jul 31 15:32:53 2020 +0000
Parent:
1:7149c0779e5b
Commit message:
Lab 2.3

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7149c0779e5b -r d07750adfe89 main.cpp
--- a/main.cpp	Tue Jul 28 09:45:20 2020 +0000
+++ b/main.cpp	Fri Jul 31 15:32:53 2020 +0000
@@ -16,7 +16,7 @@
  x=1;  //  sets variable x to 1
 }
 
-void reset()
+void reset() //reset variable to 0
 {
     x=0;
 }