toPresetLocation method
Implementation
Future<bool> toPresetLocation(int index, {int timeout = 5}) async {
int? cmd;
switch (index) {
case 0:
cmd = 31;
break;
case 1:
cmd = 33;
break;
case 2:
cmd = 35;
break;
case 3:
cmd = 37;
break;
case 4:
cmd = 39;
break;
default:
break;
}
bool ret = await _command.writeCgi(
"decoder_control.cgi?command=$cmd&onestep=0&",
timeout: timeout);
return ret;
}