Commit eb3475b
committed
Make MO_CONFIG_MAX_VALSTRSIZE override-able via -D
Wrap the existing 128-byte default in #ifndef so consumers can raise the
ceiling via a build flag (`-DMO_CONFIG_MAX_VALSTRSIZE=256` etc.) without
patching the header. Default is unchanged. Same shape as the surrounding
MO_CONFIG_EXT_PREFIX / MO_CONFIG_TYPECHECK guards.
Motivation: the OCPP 1.6 MeterValuesSampledData advertised list overflows
128 chars once the optional measurands (Temperature, SoC, Frequency,
Power.Factor) are bound — Configuration::setString silently rejects the
write and the CSMS-side default permanently overrides ours.1 parent ee1271b commit eb3475b
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments