From b96088c4eb631b49b2801109e148900b5423e472 Mon Sep 17 00:00:00 2001 From: Clement Date: Thu, 18 Jan 2024 19:32:02 +0100 Subject: [PATCH] cleanup --- include/Program.h | 8 +------- src/Program.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/include/Program.h b/include/Program.h index 949efc8..033fd3a 100644 --- a/include/Program.h +++ b/include/Program.h @@ -5,7 +5,7 @@ #include "GRBL.h" #include #include -#include +// #include class Program { public: @@ -27,12 +27,6 @@ private: * @brief stepper motor controller */ GRBL* grbl; - - /** - * @brief stack des UUID lue - * - */ - std::vector* NfcIDs; }; #endif diff --git a/src/Program.cpp b/src/Program.cpp index 45e9961..918b53a 100644 --- a/src/Program.cpp +++ b/src/Program.cpp @@ -29,17 +29,17 @@ Program::Program() { } void Program::loop() { - if(this->grbl->) - this->grbl->mouveForward(5); //TODO: réglé pour qu'il avance de la bonne distance - String nfcIn = "0"; // TODO: si le lecteur envoie qqc - //TODO: refrech servo - if(nfcIn !="0"){ - //envoyer sur dolibard - this->NfcIDs->push_back(nfcIn); - } - if(this->NfcIDs->size() > 0){ + // if(this->grbl->) + // this->grbl->mouveForward(5); //TODO: réglé pour qu'il avance de la bonne distance + // String nfcIn = "0"; // TODO: si le lecteur envoie qqc + // //TODO: refrech servo + // if(nfcIn !="0"){ + // //envoyer sur dolibard + // this->NfcIDs->push_back(nfcIn); + // } + // if(this->NfcIDs->size() > 0){ + // } - } //alog V1 //je lis la valeur NFC