deletePresetLocation method

Future<bool> deletePresetLocation(
  1. int index, {
  2. int timeout = 5,
})

Implementation

Future<bool> deletePresetLocation(int index, {int timeout = 5}) async {
  int? cmd;
  switch (index) {
    case 0:
      cmd = 62;
      break;
    case 1:
      cmd = 63;
      break;
    case 2:
      cmd = 64;
      break;
    case 3:
      cmd = 65;
      break;
    case 4:
      cmd = 66;
      break;
    default:
      break;
  }
  bool ret = await _command.writeCgi(
      "decoder_control.cgi?command=$cmd&onestep=0&",
      timeout: timeout);
  return ret;
}