From 7a3845cbdfbd6e23ec41d1175a4050e1c4503825 Mon Sep 17 00:00:00 2001 From: Alex Shepherd Date: Sun, 8 Jul 2018 00:54:21 +1200 Subject: [PATCH] Changed the architectures to now be * as we're no longer tied to AVR specific hardware, however I've listed the architectures its been tested on Fixed a bug with CV bit-write --- NmraDcc.cpp | 4 ++-- NmraDcc.h | 2 -- library.properties | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/NmraDcc.cpp b/NmraDcc.cpp index 2d49e41..39c80c8 100644 --- a/NmraDcc.cpp +++ b/NmraDcc.cpp @@ -1234,9 +1234,9 @@ void execDccProcessor( DCC_MSG * pDccMsg ) uint8_t currentValue = readCV(cvAddress); uint8_t newValueMask = 1 << (cvValue & 0b00000111); if(cvValue & 0b00001000) - writeCV(cvAddress, cvValue | newValueMask); + writeCV(cvAddress, currentValue | newValueMask); else - writeCV(cvAddress, cvValue & ~newValueMask); + writeCV(cvAddress, currentValue & ~newValueMask); } break; } diff --git a/NmraDcc.h b/NmraDcc.h index 9f2cb62..d5ae4b8 100644 --- a/NmraDcc.h +++ b/NmraDcc.h @@ -44,8 +44,6 @@ #include "WProgram.h" #endif -#include "pins_arduino.h" - #include "EEPROM.h" #ifndef NMRADCC_IS_IN diff --git a/library.properties b/library.properties index 35818c6..0e6e49b 100644 --- a/library.properties +++ b/library.properties @@ -3,7 +3,7 @@ version=2.0.0 author=Alex Shepherd, Wolfgang Kuffer, Geoff Bunza, Martin Pischky, Franz-Peter Müller, Sven (littleyoda) maintainer=Alex Shepherd sentence=Enables NMRA DCC Communication -paragraph=This library allows you to interface to a NMRA DCC track signal and receive DCC commands. The library currently supports the AVR ATTiny84/85 & ATMega88/168/328/32u4, ESP8266 and Teensy 3.x using the INT0/1 Hardware Interrupt and micros() ONLY and no longer uses Timer0 Compare Match B, which makes it much more portable to other platforms. +paragraph=This library allows you to interface to a NMRA DCC track signal and receive DCC commands. The library has been tested on AVR ATTiny84/85 & ATMega88/168/328/32u4, ESP8266 and Teensy 3.x using the INT0/1 Hardware Interrupt and micros() ONLY and no longer uses Timer0 Compare Match B, which makes it much more portable to other platforms. category=Communication url=https://github.com/mrrwa/NmraDcc -architectures=avr,esp8266,STM32F1 +architectures=*