mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-19 23:46:02 +01:00
SAMD21 odd byte boundary
This commit is contained in:
parent
881463ada9
commit
5e60fb4e27
@ -105,13 +105,10 @@ uint16_t RMFT2::getOperand(byte n) {
|
|||||||
// getOperand static version, must be provided prog counter from loop etc.
|
// getOperand static version, must be provided prog counter from loop etc.
|
||||||
uint16_t RMFT2::getOperand(int progCounter,byte n) {
|
uint16_t RMFT2::getOperand(int progCounter,byte n) {
|
||||||
int offset=progCounter+1+(n*3);
|
int offset=progCounter+1+(n*3);
|
||||||
if (offset&1) {
|
|
||||||
byte lsb=GETHIGHFLASH(RouteCode,offset);
|
byte lsb=GETHIGHFLASH(RouteCode,offset);
|
||||||
byte msb=GETHIGHFLASH(RouteCode,offset+1);
|
byte msb=GETHIGHFLASH(RouteCode,offset+1);
|
||||||
return msb<<8|lsb;
|
return msb<<8|lsb;
|
||||||
}
|
}
|
||||||
return GETHIGHFLASHW(RouteCode,offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
LookList::LookList(int16_t size) {
|
LookList::LookList(int16_t size) {
|
||||||
m_size=size;
|
m_size=size;
|
||||||
|
@ -4,8 +4,9 @@
|
|||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "4.2.24"
|
#define VERSION "4.2.25"
|
||||||
// 4.3.24 - Bugfix Ethernet shield: Static IP now possible
|
// 4.2.25 - Bugfix SAMD21 Exrail odd byte boundary
|
||||||
|
// 4.2.24 - Bugfix Ethernet shield: Static IP now possible
|
||||||
// 4.2.23 - Bugfix signalpin2 was not set up in shadow port
|
// 4.2.23 - Bugfix signalpin2 was not set up in shadow port
|
||||||
// 4.2.22 - Implement broadcast of Track Manager changes
|
// 4.2.22 - Implement broadcast of Track Manager changes
|
||||||
// 4.2.21 - Implement non-blocking I2C for EX-IOExpander device driver
|
// 4.2.21 - Implement non-blocking I2C for EX-IOExpander device driver
|
||||||
|
Loading…
Reference in New Issue
Block a user