From dc5eb0d315a42a8698ee87da174183f5a277efef Mon Sep 17 00:00:00 2001 From: oborotev Date: Tue, 23 Feb 2016 22:08:13 +0000 Subject: [PATCH] changed led state to low when done writing --- Margoulineur2000.ino | 2 +- margoulinade.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Margoulineur2000.ino b/Margoulineur2000.ino index 954539b..ac75e56 100644 --- a/Margoulineur2000.ino +++ b/Margoulineur2000.ino @@ -376,7 +376,7 @@ void nfc_read_write(byte dormitory, bool mode) dormitory == 3 ? Serial.println(nfc_handler.newBalance, DEC) : Serial.println(40, DEC); } Serial.println("\n\nDONE ! waiting 4 the button"); - digitalWrite(readLedPin, LOW); + !mode ? digitalWrite(readLedPin, LOW) : digitalWrite(writeLedPin, LOW); wait4button(); lcd.clear(); Serial.print("end read = ");Serial.println(oldPosition); diff --git a/margoulinade.h b/margoulinade.h index 00b93ec..ddef803 100644 --- a/margoulinade.h +++ b/margoulinade.h @@ -9,7 +9,7 @@ # define MENUELEMENTS 4 // Number of elements in the menu -# define ENCODERSTEPS 2 //Steps for the rotary encoder, menu selection +# define ENCODERSTEPS 4 //Steps for the rotary encoder, menu selection # define VALMIN 0 // Min value of the new balance in the write sequence # define VALMAX 40 // Max value of the new balance in the write sequence