Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Revision:
67:5650f461722a
Parent:
54:2878d62714d6
Child:
69:a3295b74209e
--- a/TA.h	Tue Jan 19 07:25:15 2016 +0000
+++ b/TA.h	Thu Feb 11 17:47:28 2016 +0000
@@ -5,6 +5,7 @@
 
 #include "ByteBuffer.h"
 #include "neopixel.h"
+#include "types.h"
 
 #define DATA_SIZE 24
 
@@ -16,13 +17,6 @@
 #define DEFTOUCHMASK (TOUCHLIGHTS & (6 | 1 /* test/bott */))  /* Note:  No longer using "bottom" touch sensor/lights */
 #define DIS_ON_DARK 0x40                                      /* Used for disabling touch sensor(s) when in dark mode */
 
-struct Message 
-{
-    char command;
-    uint32_t value;
-    uint8_t cone;
-};
-
 class TA
 {
 private:
@@ -112,6 +106,8 @@
 char data[DATA_SIZE];
 //static uint8_t networkID;         // network group
 
+static uint8_t msg_id;  // Message ID which replaces '%' in radio send packet for duplicate message detection.
+
 static bool    batteryLow;
 static uint8_t buttonsRising;