When mode switching and waiting check whether the device is already in the requested mode
When mode switching and waiting check whether the device is already in the requested mode

cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa