Messa in campo 4 file - 26/06/2020 Francia

Dependencies:   mbed X_NUCLEO_IHM03A1_for

Fork of FORIGO_Modula_V7_3_VdcStep_maggio2020 by Francesco Pistone

Revision:
22:2136dcad1dbc
Parent:
21:3e6576c2e126
Child:
23:ccd253b36733
--- a/main.cpp	Thu May 02 07:51:08 2019 +0000
+++ b/main.cpp	Thu May 02 09:07:41 2019 +0000
@@ -1158,12 +1158,14 @@
                 if ((flags&0x01)==0x01) {
                     if (encoder==false) {
                         encoder=true;
+                        speedFromPick=0;
                         DcEncoder.rise(NULL);
                         dcSetting();
                     }
                 } else {
                     if (encoder==true) {
                         encoder=false;
+                        speedFromPick=1;
                         DcEncoder.rise(NULL);
                         dcSetting();
                     }