Peter's version

Fork of ScoreCount by George Cochrane

Revision:
6:e269f6c282bc
Parent:
3:8e42915e7375
--- a/process_signal.cpp	Thu May 02 21:18:42 2013 +0000
+++ b/process_signal.cpp	Fri May 03 12:07:30 2013 +0000
@@ -1,5 +1,6 @@
 #include "mbed.h"
 
+
 //Function needs "signal" input, will register hit and add to array
 
 void reset_array(void)
@@ -14,9 +15,9 @@
     data[3]=0;
     }
 
-unsigned char process_signal(int signal)
+int process_signal(int signal)
         {
-        unsigned char x;
+        int x;
         extern unsigned char Ah;
         extern unsigned char Bh;
         extern unsigned char Ch;
@@ -46,12 +47,8 @@
         Dh++;
         data[3]=Dh;
         }
-       
-       if (signal!=(1 || 2 || 3 || 4))
-       { x=0; }
-       
-       else
-       { x=1; }
+        
+        x=1; 
        
        return x;
        }