Fix PLC-based mode transition code.
2 files changed