Loading…

方法名称: alert_switch_source_method

方法ID: 0x4328

方法标签: Alert Switch Source

方法描述:


  • {
  • int q, q0, q1, q2, q3;
  • float qa;
  • char S[3];
  • int b0, b1, b2, b3, b4, b5,
  • b6,
  • cb,
  • swtch,
  • fn,
  • om;
  • unsigned int flag;
  • long ids[2];
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code((8),0);
  • send(151,S); if(_ivar_value(16804)>2) { ACKNOWLEDGE("|en|The DD revision is not compatible with the firmware in the device.\nContact your Fisher sales office for an upgrade to your DD."); return; };
  • DELAY(1,"|en|Please wait...");
  • send_trans(129,45,S);
  • b0 = _ivar_value(16634);
  • b1 = _ivar_value(16635);
  • b2 = _ivar_value(16636);
  • b3 = _ivar_value(16637);
  • b4 = _ivar_value(16638);
  • b5 = _ivar_value(16639);
  • send_trans(129,78,S);
  • b6 = _ivar_value(17878);
  • swtch = 7;
  • cb = (b4 << 24) + (b3 << 16) + (b1 << 8) + b0;
  • switch (cb)
  • {
  • case 0x00000000:
  • swtch = 0;
  • break;
  • case 0x08000000:
  • swtch = 1;
  • break;
  • case 0x00000800:
  • swtch = 2;
  • break;
  • case 0x00400000:
  • swtch = 3;
  • break;
  • case 0x00004000:
  • swtch = 4;
  • break;
  • case 0x095004FF:
  • if((0x04 == b6) && (0x0C == b5) && (0xC0 == b2))
  • {
  • swtch = 5;


请登录以获得完整内容