onStateSwitched

Called when the state is switched to something else.

Parameters

oldState

the old state of the subsystem