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
This commit is contained in:
Alex Shepherd
2018-07-08 00:54:21 +12:00
parent 1717a2efb0
commit 7a3845cbdf
3 changed files with 4 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -44,8 +44,6 @@
#include "WProgram.h"
#endif
#include "pins_arduino.h"
#include "EEPROM.h"
#ifndef NMRADCC_IS_IN

View File

@@ -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 <kiwi64ajs@gmail.com>
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=*