Nelson Santos / Mbed 2 deprecated trabalho

Dependencies:   X_NUCLEO_IKS01A1-f255a2c75ecb mbed-rtos mbed

Revision:
35:34bbca276f99
Parent:
31:8bbdfea60151
--- a/userMethods.h	Wed May 18 02:30:17 2016 +0000
+++ b/userMethods.h	Wed May 18 03:32:21 2016 +0000
@@ -2,25 +2,24 @@
 #define USERMETHODS_H
 
 #include <vector>
+#include "sensor.h"
 #include "log.h"
-#include "sensor.h"
 
 using std::vector;
 
 #define QUEUESIZE 120
 
-
 // Class that will proccess the user commands on main 
 class UserMethods
 {
 public:
-    UserMethods(int num, ExpansionBoard sensor, bool lFlag);
+    UserMethods(vector<log_data> vector, int num, ExpansionBoard sensor, bool lFlag, Mail<log_data, QUEUESIZE> mail);
     static void logging(const void*);
     static void readAllData(const void*);
     static void readNData(const void*);
     int deleteAllData(const void*);
     int deleteNData(const void*);
-    static vector<log_data> * v;
+    Mail<log_data, QUEUESIZE> * logMail;
     static int * n;
     static bool flag;
     static ExpansionBoard * e;