|
|
@@ -1326,9 +1326,11 @@ int ups_metac_service_pdu(cmdMegaTecEnums_t command)
|
|
|
|
|
|
megatec_send = true;
|
|
|
}
|
|
|
+#if HARDWARE_BT6721
|
|
|
if (command == ups_shutdown) {
|
|
|
return 1;
|
|
|
}
|
|
|
+#endif
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
@@ -1583,10 +1585,15 @@ void UPSRestoreCallback(TimerHandle_t pxTimer)
|
|
|
memset(ups_pdu.data, 0, UPS_PDU_MAX_LEN);
|
|
|
megatec_send = false;
|
|
|
//UPS.Flag_Present = false;
|
|
|
- //send_MegaTec_cmd(ups_remote_turn_on);
|
|
|
+#ifdef HARDWARE_BT6721
|
|
|
send_MegaTec_cmd(ups_cancel_shut_down);
|
|
|
+#else
|
|
|
+ send_MegaTec_cmd(ups_remote_turn_on);
|
|
|
+#endif
|
|
|
if (ups_megatec_rx_pdu()) {
|
|
|
- //ups_megatec_process_pdu(ups_remote_turn_on);
|
|
|
+#ifndef HARDWARE_BT6721
|
|
|
+ ups_megatec_process_pdu(ups_remote_turn_on);
|
|
|
+#endif
|
|
|
}
|
|
|
megatec_send = true;
|
|
|
}
|