Use defines instead of hardcoded magic values for maximum number of output channels and rpm filter time constant

This commit is contained in:
Matthias Grob
2024-12-12 13:30:21 +01:00
parent 8ce6ad6662
commit b85ad98a98
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ bool PPSCapture::init()
{
bool success = false;
for (unsigned i = 0; i < 16; ++i) {
for (unsigned i = 0; i < PWM_OUTPUT_MAX_CHANNELS; ++i) {
char param_name[17];
snprintf(param_name, sizeof(param_name), "%s_%s%d", PARAM_PREFIX, "FUNC", i + 1);
param_t function_handle = param_find(param_name);