@@ -1600,6 +1600,10 @@ static void r_customFn(void* user, uint8_t* data, uint32_t bitoffs,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set 'enabled' to handle old format YAML files
|
||||||
|
// Will be updated if enabled flag is actually present
|
||||||
|
CFN_ACTIVE(cfn) = 1;
|
||||||
|
|
||||||
if (eat_comma) {
|
if (eat_comma) {
|
||||||
val += l_sep;
|
val += l_sep;
|
||||||
val_len -= l_sep;
|
val_len -= l_sep;
|
||||||
@@ -1615,11 +1619,9 @@ static void r_customFn(void* user, uint8_t* data, uint32_t bitoffs,
|
|||||||
if (HAS_REPEAT_PARAM(func)) {
|
if (HAS_REPEAT_PARAM(func)) {
|
||||||
// Check for 2 values to be parsed
|
// Check for 2 values to be parsed
|
||||||
uint8_t l_sep = find_sep(val, val_len);
|
uint8_t l_sep = find_sep(val, val_len);
|
||||||
if (!l_sep) {
|
if (l_sep == val_len) {
|
||||||
// only one more value - assume it is repeat
|
// only one more value - assume it is repeat
|
||||||
read_enable_flag = false;
|
read_enable_flag = false;
|
||||||
// Set 'enabled'
|
|
||||||
CFN_ACTIVE(cfn) = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user