Serial improvements (can RX, canTX)

PinManager bugfix for unsigned long long
This commit is contained in:
Blaz Kristan
2024-09-17 16:21:52 +02:00
parent 7f1ec4802d
commit ac8f919304
8 changed files with 78 additions and 65 deletions

View File

@@ -87,7 +87,11 @@ class PinManagerClass {
PinOwner ownerTag[WLED_NUM_PINS] = { PinOwner::None };
public:
PinManagerClass() : pinAlloc(0), i2cAllocCount(0), spiAllocCount(0) {}
PinManagerClass() : pinAlloc(0ULL), i2cAllocCount(0), spiAllocCount(0) {
#ifdef ARDUINO_ARCH_ESP32
ledcAlloc = 0;
#endif
}
// De-allocates a single pin
bool deallocatePin(byte gpio, PinOwner tag);
// De-allocates multiple pins but only if all can be deallocated (PinOwner has to be specified)