We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1783c commit 32f1207Copy full SHA for 32f1207
examples/opta_opcua_server/opta_opcua_server.ino
@@ -371,11 +371,11 @@ void setup()
371
},
372
[i, p](void) -> uint32_t
373
{
374
- return reinterpret_cast<AnalogExpansion *>(OptaController.getExpansionPtr(i))->getPwmPeriod(p - OA_PWM_CH_FIRST);
+ return reinterpret_cast<AnalogExpansion *>(OptaController.getExpansionPtr(i))->getPwmPeriod(p);
375
376
377
378
- return reinterpret_cast<AnalogExpansion *>(OptaController.getExpansionPtr(i))->getPwmPulse(p - OA_PWM_CH_FIRST);
+ return reinterpret_cast<AnalogExpansion *>(OptaController.getExpansionPtr(i))->getPwmPulse(p);
379
});
380
pwm_output_num++;
381
}
0 commit comments