From 96b8311579a51f96277ca35e4c0af5e2dc51dabb Mon Sep 17 00:00:00 2001 From: Mit4el Date: Tue, 7 Jan 2025 17:02:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=83=D1=82=D0=B8=20=D0=B2=20=D1=81?= =?UTF-8?q?=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/patch32_ws.py | 3 ++- tools/patch32c6.py | 3 ++- tools/patch8266_16m.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/patch32_ws.py b/tools/patch32_ws.py index b56d5159..86df29dc 100644 --- a/tools/patch32_ws.py +++ b/tools/patch32_ws.py @@ -9,7 +9,7 @@ import shutil from sys import platform pio_home = env.subst("$PROJECT_CORE_DIR") -print(pio_home) +print("PLATFORMIO_DIR" + pio_home) if platform == "linux" or platform == "linux2": # linux @@ -30,5 +30,6 @@ try: newData = newData.replace('#define WIFI_CLIENT_SELECT_TIMEOUT_US (1000000)', '#define WIFI_CLIENT_SELECT_TIMEOUT_US (500000)') with open(mainPyPath, 'w') as fw: fw.write(newData) + print(f"Файл изменён, ОК! {mainPyPath}") except FileNotFoundError: print("Файл не найден или не удается открыть") \ No newline at end of file diff --git a/tools/patch32c6.py b/tools/patch32c6.py index 3264c06f..5933dc68 100644 --- a/tools/patch32c6.py +++ b/tools/patch32c6.py @@ -5,7 +5,7 @@ import shutil from sys import platform pio_home = env.subst("$PROJECT_CORE_DIR") -print(pio_home) +print("PLATFORMIO_DIR" + pio_home) if platform == "linux" or platform == "linux2": # linux @@ -29,6 +29,7 @@ def add_arduino_to_frameworks(file_name): f.seek(0) json.dump(data, f, indent=4) f.truncate() + print(f"Файл изменён, ОК! {file_name}") else: print(f"Arduino already exists in {file_name}") except FileNotFoundError: diff --git a/tools/patch8266_16m.py b/tools/patch8266_16m.py index 89311217..75aecbb9 100644 --- a/tools/patch8266_16m.py +++ b/tools/patch8266_16m.py @@ -7,7 +7,7 @@ import shutil from sys import platform pio_home = env.subst("$PROJECT_CORE_DIR") -print(pio_home) +print("PLATFORMIO_DIR" + pio_home) if platform == "linux" or platform == "linux2": #mainPyPath = '/home/rise/.platformio/platforms/espressif8266@4.0.1/builder/main.py' @@ -26,5 +26,6 @@ try: newData = oldData.replace('_value += 0xE00000 # correction', '_value += 0xE00000 # correction\n\n if _value == -0x6000:\n _value = env[k]-0x40200000') with open(mainPyPath, 'w') as fw: fw.write(newData) + print(f"Файл изменён, ОК! {mainPyPath}") except FileNotFoundError: print("Файл не найден или не удается открыть") \ No newline at end of file