chore: Formatting #3780

Forgot to push before merge
This commit is contained in:
Peter Feerick
2023-10-01 15:21:44 +10:00
parent 00cb9c48df
commit e8077021f6
5 changed files with 27 additions and 27 deletions
+2 -4
View File
@@ -529,12 +529,10 @@ void pulsesSendNextFrame(uint8_t module)
pulsesEnableModule(module, protocol);
moduleState[module].protocol = protocol;
return;
}
auto mod = &(_module_drivers[module]);
if (mod->drv) {
auto drv = mod->drv;
auto ctx = mod->ctx;
@@ -542,10 +540,10 @@ void pulsesSendNextFrame(uint8_t module)
if (drv->onConfigChange) drv->onConfigChange(ctx);
state.settings_updated = 0;
}
uint8_t channelStart = g_model.moduleData[module].channelsStart;
int16_t* channels = &channelOutputs[channelStart];
uint8_t nChannels = 16; // TODO: MAX_CHANNELS - channelsStart
uint8_t nChannels = 16; // TODO: MAX_CHANNELS - channelsStart
auto buffer = _module_buffers[module]._buffer;
drv->sendPulses(ctx, buffer, channels, nChannels);