523调试

This commit is contained in:
zjk
2025-05-23 15:38:23 +08:00
parent 3a14a3cff8
commit ee050bb58b
13 changed files with 1209 additions and 939 deletions
+13 -3
View File
@@ -523,9 +523,19 @@ bool udpComm::sendCcuColCmd(const ccuColCmd cmd)
}
sendMsg(msgBuf,sizeof(msg_CcuColCmdMsg));
}
catch(const std::exception& e)
catch(const std::invalid_argument& e)
{
std::cerr << e.what() << '\n';
std::cerr << "Invalid argument error in CCU command: " << e.what() << '\n';
LOG_F(ERROR, "Invalid argument in CCU command: %s", e.what());
delete msg;
return false;
}
catch(const std::out_of_range& e)
{
std::cerr << "Out of range error in CCU command: " << e.what() << '\n';
LOG_F(ERROR, "Out of range in CCU command: %s", e.what());
delete msg;
return false;
}
delete msg;
return true;
@@ -584,4 +594,4 @@ bool udpComm::getDate(unsigned short &year, unsigned char &month, unsigned char
milliseconds = static_cast<unsigned char>(ms);
return true;
}
}