1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Minor edits.

This commit is contained in:
pmantoine 2022-05-05 21:20:49 +08:00
parent 8fa1ba3039
commit cb365579d8
2 changed files with 16 additions and 9 deletions

View File

@ -119,8 +119,9 @@ void TCC2_Handler() {
bool DCCTimer::isPWMPin(byte pin) {
//TODO: SAMD test this works!
// return digitalPinHasPWM(pin);
//TODO: SAMD whilst this call to digitalPinHasPWM will reveal which pins can do PWM,
// there's no support yet for High Accuracy, so for now return false
// return digitalPinHasPWM(pin);
return false;
}

View File

@ -77,15 +77,21 @@
// This defines the speed at which the Arduino will communicate with the ESP8266 module.
// Currently only devices which can communicate at 115200 are supported.
//
// TODO: PMA remove! Need 9600bps for Sparkfun shield with old firmware!
#if defined(ARDUINO_ARCH_SAMD)
#define WIFI_SERIAL_LINK_SPEED 9600
#else
#define WIFI_SERIAL_LINK_SPEED 115200
#endif
// TODO: PMA - figure out why enabling this causes the CS to crashe immediately after starting the motor driver
//#if __has_include ( "myAutomation.h")
// #if defined(BIG_RAM) || defined(DISABLE_EEPROM)
// #define EXRAIL_ACTIVE
// #else
// #define EXRAIL_WARNING
// #endif
//#endif
// on the SAMD platform - going to try to rebase to current TrackManager in case it's not my bug :-)
#if __has_include ( "myAutomation.h")
#if defined(BIG_RAM) || defined(DISABLE_EEPROM)
#define EXRAIL_ACTIVE
#else
#define EXRAIL_WARNING
#endif
#endif
#endif