Loading…
Loading…
方法名称: methodCurrentMode
方法ID: 0x426F
方法标签: What is Current Mode?
方法描述: What is Current Mode? - To get the current mode of this device
- {
- char nbr;
- char status[3];
- _set_device_status(0xFF,0);
- send(249, status);
- if( status[0] != 0 ) { display_response_status(249, status[0]); DELAY(3,"|en|Procedure aborted \nTry Again."); process_abort();; };
- if (_ivar_value(16385) == 3)
- {
- ACKNOWLEDGE("|en|\n Device is currently in NORMAL mode.");
- }
- else if (_ivar_value(16385) == 1)
- {
- ACKNOWLEDGE("|en|\n Device is currently in MANUAL mode.");
- }
- else if (_ivar_value(16385) == 0)
- {
- if (_ivar_value(16681) == 0)
- {
- ACKNOWLEDGE("|en|\n Device is currently in SETUP mode.");
- }
- else if (_ivar_value(16681) == 1)
- {
- ACKNOWLEDGE("|en|\n Device is currently in LOW POWER mode.");
- }
请登录以获得完整内容