add debug

This commit is contained in:
Isaac Connor committed 2017-05-05 16:37:12 -04:00
1 parent 64193c3368
commit cb99d709c5
1 file changed
+6 -1
+6 -1
View File
@@ -334,15 +334,19 @@ var statusCmdReq = new Request.JSON( { url: monitorUrl+thisUrl, method: 'get', d
var statusCmdTimer = null;
function getStatusCmdResponse( respObj, respText ) {
console.log("Got statusCmdQuery");
watchdogOk("status");
if ( statusCmdTimer )
statusCmdTimer = clearTimeout( statusCmdTimer );
if ( respObj.result == 'Ok' ) {
console.log("Got ok for status");
$('fpsValue').set( 'text', respObj.monitor.FrameRate );
setAlarmState( respObj.monitor.Status );
} else
} else {
console.log("Got bad response for status");
checkStreamForErrors("getStatusCmdResponse",respObj);
}
var statusCmdTimeout = statusRefreshTimeout;
if ( alarmState == STATE_ALARM || alarmState == STATE_ALERT )
@@ -351,6 +355,7 @@ function getStatusCmdResponse( respObj, respText ) {
}
function statusCmdQuery() {
console.log("Sending statusCmdQuery");
statusCmdReq.send();
}