Karpova Lab fork of stateScript

Dependencies:   SMARTWAV SOMO_II mbed

Fork of stateScript_v2_karpova by Andy Lustig

Revision:
9:f15ad8d18881
Parent:
3:d7b0a0890d96
diff -r 436cf2ab961c -r f15ad8d18881 hardwareInterface.cpp
--- a/hardwareInterface.cpp	Wed Jan 27 21:31:45 2016 +0000
+++ b/hardwareInterface.cpp	Thu Jan 28 16:47:32 2016 +0000
@@ -151,6 +151,7 @@
 
 sSound::sSound(void):
     fileNameExists(false),
+    fileNum(0),
     volumePtr(NULL),
     volume(-1),
     play(true),
@@ -167,6 +168,11 @@
         fileNameExists = true;
     }
 }
+
+void sSound::setFile(unsigned char filenNumIn) { //overload setFile to work with SOMO module
+    fileNum = filenNumIn;
+}
+
 void sSound::setVolume(int volumeIn) {
 
     if ((volumeIn >= 0) && (volumeIn < 256)) {