rebase to bus-config

This commit is contained in:
PaoloTK
2024-08-29 13:18:48 +02:00
parent c51ce2eec7
commit 6655e2664e
4 changed files with 38 additions and 19 deletions

View File

@@ -673,7 +673,7 @@ void BusNetwork::cleanup(void) {
//utility to get the approx. memory usage of a given BusConfig
uint32_t BusManager::memUsage(BusConfig &bc) {
if (Bus::isOnOff(bc.type) || Bus::isPWM(bc.type)) return 5;
if (Bus::isOnOff(bc.type) || Bus::isPWM(bc.type)) return OUTPUT_MAX_PINS;
unsigned len = bc.count + bc.skipAmount;
unsigned channels = Bus::getNumberOfChannels(bc.type);