Loading…

Method Name: restore_factory_settings_method_part2

Method ID: 0x40DB

Method Label: Factory Settings

Method Help:


  • {
  • char status[3];
  • int i_result;
  • SET_NUMBER_OF_RETRIES(7);
  • _set_no_device(2);
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • send(157,status);
  • if (status[0] != 0)
  • {
  • if (status[0] == 3 || status[0] == 4 || status[0] == 2 || status[0] == 65 || status[0] == 113 || status[0] == 114)
  • {
  • display_response_status(157,status[0]);
  • }
  • else
  • if (status[0] == 112)
  • {
  • }
  • else
  • {
  • display_response_status(157,status[0]);
  • process_abort();
  • }
  • }
  • ;
  • send(160,status);
  • if (status[0] != 0)
  • {
  • if (status[0] == 3 || status[0] == 4 || status[0] == 2 || status[0] == 65 || status[0] == 113 || status[0] == 114)
  • {
  • display_response_status(160,status[0]);
  • }
  • else
  • if (status[0] == 112)
  • {
  • }
  • else
  • {
  • display_response_status(160,status[0]);
  • process_abort();
  • }
  • }
  • ;
  • send(162,status);
  • if (status[0] != 0)


Please login for more