Browse Source

2.0.7.51+1018

master
ming.hong 1 year ago
parent
commit
5a0b954877
  1. 10
      Aida/python.html
  2. 1027
      Aida/python_ming.html

10
Aida/python.html

@ -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

1027
Aida/python_ming.html

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save