|
@@ -763,6 +763,17 @@ static bool onButtonClick_CallCencelButton(ZKButton *pButton) {
|
|
|
static bool onButtonClick_NursingButton(ZKButton *pButton) {
|
|
|
LOGD(" ButtonClick NursingButton !!!\n");
|
|
|
LOGD("onButtonClick_Nursing 触发护理按钮!!!");
|
|
|
+
|
|
|
+ std::string color = partSetting.nursingColorRgb;
|
|
|
+ std::string heartStr;
|
|
|
+ if (color != "" && color.size() == 3) {
|
|
|
+ heartStr = "DOORLED," + color + "F";
|
|
|
+ } else {
|
|
|
+ heartStr = "DOORLED,010F";
|
|
|
+ }
|
|
|
+ const char* sendMsg = heartStr.c_str();
|
|
|
+ sendProtocolTo(UART_TTYS2, (byte*)(sendMsg), strlen(sendMsg));
|
|
|
+
|
|
|
mFunctionWinPtr->showWnd();
|
|
|
mFunctionTextViewPtr->setText(LANGUAGEMANAGER->getValue("InNursing"));
|
|
|
mFunctionButtonPtr->setText(LANGUAGEMANAGER->getValue("NursingEnd"));
|
|
@@ -804,6 +815,10 @@ static bool onButtonClick_FunctionButton(ZKButton *pButton) {
|
|
|
LOGD(" ButtonClick FunctionButton !!!\n");
|
|
|
mFunctionWinPtr->hideWnd();
|
|
|
|
|
|
+ std::string heartStr = "DOORLED,000F";
|
|
|
+ const char* sendMsg = heartStr.c_str();
|
|
|
+ sendProtocolTo(UART_TTYS2, (byte*)(sendMsg), strlen(sendMsg));
|
|
|
+
|
|
|
if (nursingTcpModel.json.size() != 0) { // 对比一下,json里面不为空的时候
|
|
|
// 发送tcp, tcp_type = SIDE, tcp_action = NURSING_END
|
|
|
TcpModel tcpModel;
|