Finished Decoder

Revision:
2:6b9833ee0cc6
Parent:
1:da51d068920b
Child:
3:d22eedba5563
diff -r da51d068920b -r 6b9833ee0cc6 main.cpp
--- a/main.cpp	Thu Oct 15 16:54:55 2020 +0000
+++ b/main.cpp	Thu Oct 15 17:50:38 2020 +0000
@@ -2,8 +2,8 @@
 
 InterruptIn signal(A0);
 Timer t_Receiver_Ch_Signal;
-unsigned int all_Ch[8];
-unsigned int current_Ch;
+unsigned short all_Ch[8];
+unsigned short current_Ch;
 unsigned char state_Of_Signal;
 
 
@@ -33,7 +33,7 @@
     t_Receiver_Ch_Signal.start();
     signal.fall(&isrFall);
     state_Of_Signal = 0;
-    while (true) {
+    while (1) {
         for(int i = 0; i < 8; i++)
         {
             printf("Channel %d: %d \n", i + 1, all_Ch[i]);