MAX_EXPANDED_LEGS
constMAX_EXPANDED_LEGS:255=255
Defined in: console-sdk/src/session/plan.ts:71
The maximum number of legs an expanded interval program may have. The
firmware’s rounds byte IS the leg count, validated 1..255; 0xFF/255 is a
legitimate 255-leg program, never the “unlimited” sentinel. A program past
this ceiling rejects 'session/invalid-plan' (replacing the codec’s defensive
RangeError; SDK_PLAN.md §3.6.5, design §C.5).
Exported so a pre-flight UI can bound its rounds picker against the SAME value the SDK enforces instead of copying a magic number. This is a firmware-tied constant — a firmware change that moves it is a visible API change.