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