This is the off-road mode, not the legal flag.
The speed limitation works only, if the legal flag is set (Coaster Brake Support set to "yes") and the Off-road mode is disabled.
I have Coaster Brake Support set to 'yes' and I'm using the 202 button combination. When I switch the combinations, the number 8 appears on the display. At that point, the throttle is locked at 6 km/h, but the assist speed is still much higher than 25 km/h.
When the display shows 9, off-road mode is activated correctly and the throttle works without limits.
I'm wondering if I should try to modify this mode a bit myself. Could the cat generated below work correctly? If I want to completely disable the throttle in legal flag mode, plus the speed is limited to 25m/h?
// --- START OF MODIFICATION ---
if(MP.legalflag && !MS.offroadflag) {
// Check if pedaling is active (cadence check)
if((uint16_cadence_filtered >> 3) > 15) {
// 1. Speed limit 25km/h (2500 units)
// Power fades between 25km/h and 27km/h
MS.i_q_setpoint_temp = map(MS.Speedx100, 2500, 2700, MS.i_q_setpoint_temp, 0);
}
else {
// 2. Disable power if not pedaling (disables throttle and walk assist)
MS.i_q_setpoint_temp = 0;
}
} //end legalflag
// --- END OF MODIFICATION ---