|
|
|
@ -558,8 +558,9 @@ |
|
|
|
updateFileIcon(); |
|
|
|
updateFileIcon(); |
|
|
|
// console.log("GET Status Succeeded."); |
|
|
|
// console.log("GET Status Succeeded."); |
|
|
|
// console.log("--------------dataReceivedCount--------------",dataReceivedCount) |
|
|
|
// console.log("--------------dataReceivedCount--------------",dataReceivedCount) |
|
|
|
|
|
|
|
// every 15 second to check PythonRunning status |
|
|
|
if (dataReceivedCount >= receivedCountThreshold) { |
|
|
|
if (dataReceivedCount >= receivedCountThreshold) { |
|
|
|
// every 20 step to check open or close PythonRunning |
|
|
|
|
|
|
|
if (getBufferStatusTemp == 5 && getBufferSignal == 0) |
|
|
|
if (getBufferStatusTemp == 5 && getBufferSignal == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
g_isPythonRunning = 0; |
|
|
|
g_isPythonRunning = 0; |
|
|
|
@ -580,7 +581,7 @@ |
|
|
|
getBufferSignal = parseInt(data['bufferSignal']); |
|
|
|
getBufferSignal = parseInt(data['bufferSignal']); |
|
|
|
console.log('getBufferStatusTemp',getBufferStatusTemp); |
|
|
|
console.log('getBufferStatusTemp',getBufferStatusTemp); |
|
|
|
console.log('getBufferSignal',getBufferSignal); |
|
|
|
console.log('getBufferSignal',getBufferSignal); |
|
|
|
|
|
|
|
console.log("g_isPythonRunning",g_isPythonRunning); |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
console.log(error); |
|
|
|
console.log(error); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -597,6 +598,7 @@ |
|
|
|
json_data += '}'; |
|
|
|
json_data += '}'; |
|
|
|
func_setconfigfile(json_data); |
|
|
|
func_setconfigfile(json_data); |
|
|
|
currentRunningFile = '' |
|
|
|
currentRunningFile = '' |
|
|
|
|
|
|
|
$("#run-button").prop("disabled", false); |
|
|
|
} |
|
|
|
} |
|
|
|
dataReceivedCount++; |
|
|
|
dataReceivedCount++; |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -719,8 +721,8 @@ |
|
|
|
success: function (retdata) { |
|
|
|
success: function (retdata) { |
|
|
|
console.log("[/sendpycode] retdata:", retdata); // 2024/08/21 |
|
|
|
console.log("[/sendpycode] retdata:", retdata); // 2024/08/21 |
|
|
|
// resolve(retdata); |
|
|
|
// resolve(retdata); |
|
|
|
// $('#console').text("Running.....\n"); |
|
|
|
// $('#console').text("Running.....\n"); |
|
|
|
|
|
|
|
g_isPythonRunning = 0; |
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function (retdata) { |
|
|
|
error: function (retdata) { |
|
|
|
console.error("GET request failed: ", retdata); //2024/08/21 |
|
|
|
console.error("GET request failed: ", retdata); //2024/08/21 |
|
|
|
|