File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ int CPanasonicNode::handleMessage(std::string pMessage)
338
338
int iPosEnd = 0 ;
339
339
std::string begin (" >" );
340
340
std::string end (" <" );
341
- // std::string ResponseOK("HTTP/1.1 200");
341
+ std::string ResponseOK (" HTTP/1.1 200" );
342
342
std::string ResponseOff (" HTTP/1.1 400" );
343
343
344
344
if (pMessage == " ERROR" || pMessage == " " )
@@ -347,6 +347,15 @@ int CPanasonicNode::handleMessage(std::string pMessage)
347
347
return -1 ;
348
348
}
349
349
350
+ // Look for a 200 response as this indicates that the TV was ok with last command.
351
+ iPosBegin = pMessage.find (ResponseOK);
352
+ if (iPosBegin != std::string::npos)
353
+ {
354
+ if (DEBUG_LOGGING) _log.Log (LOG_NORM, " Panasonic Plugin: (%s) Last command response OK" , m_Name.c_str ());
355
+ }
356
+
357
+ iPosBegin = 0 ;
358
+
350
359
// Look for a 400 response as this indicates that the TV supports powering on.
351
360
iPosBegin = pMessage.find (ResponseOff);
352
361
if (iPosBegin != std::string::npos)
You can’t perform that action at this time.
0 commit comments