mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
remove debug
This commit is contained in:
parent
bc2adb6b5a
commit
729b2b2873
@ -647,7 +647,6 @@ void hsv_to_rgb(int hue, float saturation, float value, float &red, float &green
|
||||
// System APIs
|
||||
#if defined(USE_ESP8266) || defined(USE_RP2040)
|
||||
// ESP8266 doesn't have mutexes, but that shouldn't be an issue as it's single-core and non-preemptive OS.
|
||||
// RP2040 support is currently limited to single-core mode
|
||||
Mutex::Mutex() {}
|
||||
Mutex::~Mutex() {}
|
||||
void Mutex::lock() {}
|
||||
|
@ -474,14 +474,6 @@ async def run_binary_and_wait_for_port(
|
||||
|
||||
if process.returncode is not None:
|
||||
error_msg += f"\nProcess exited with code: {process.returncode}"
|
||||
# Check for common signals
|
||||
if process.returncode < 0:
|
||||
sig = -process.returncode
|
||||
try:
|
||||
sig_name = signal.Signals(sig).name
|
||||
error_msg += f" (killed by signal {sig_name})"
|
||||
except ValueError:
|
||||
error_msg += f" (killed by signal {sig})"
|
||||
|
||||
# Include any output collected so far
|
||||
if stdout_lines:
|
||||
@ -509,20 +501,6 @@ async def run_binary_and_wait_for_port(
|
||||
if controller_transport is not None:
|
||||
controller_transport.close()
|
||||
|
||||
# Log the exit code if process already exited
|
||||
if process.returncode is not None:
|
||||
print(f"\nProcess exited with code: {process.returncode}", file=sys.stderr)
|
||||
if process.returncode < 0:
|
||||
sig = -process.returncode
|
||||
try:
|
||||
sig_name = signal.Signals(sig).name
|
||||
print(
|
||||
f"Process was killed by signal {sig_name} ({sig})",
|
||||
file=sys.stderr,
|
||||
)
|
||||
except ValueError:
|
||||
print(f"Process was killed by signal {sig}", file=sys.stderr)
|
||||
|
||||
# Cleanup: terminate the process gracefully
|
||||
if process.returncode is None:
|
||||
# Send SIGINT (Ctrl+C) for graceful shutdown
|
||||
|
Loading…
x
Reference in New Issue
Block a user