You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (con_temp-prev_con_temp) >rapid_temp_increase_per_second_shutoff_C:
137
-
logger.warning(f"Console temperature rose from {prev_con_temp}°C to {con_temp}°C (above {rapid_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
137
+
if (con_temp-prev_con_temp) >rapid_console_temp_increase_per_second_shutoff_C:
138
+
logger.warning(f"Console temperature rose from {prev_con_temp}°C to {con_temp}°C (above {rapid_console_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
138
139
log_line=f"{current_time},SHUTDOWN,Console temperature exceeded rapid temp increase shutoff threshold\n"
139
140
shutdown=True
140
141
else:
@@ -144,8 +145,8 @@ def log_temperature():
144
145
ifprev_tx_tempisNone:
145
146
prev_tx_temp=interface.txdevice.get_temperature()
146
147
tx_temp=interface.txdevice.get_temperature()
147
-
if (tx_temp-prev_tx_temp) >rapid_temp_increase_per_second_shutoff_C:
148
-
logger.warning(f"TX device temperature rose from {prev_tx_temp}°C to {tx_temp}°C (above {rapid_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
148
+
if (tx_temp-prev_tx_temp) >rapid_transmitter_temp_increase_per_second_shutoff_C:
149
+
logger.warning(f"TX device temperature rose from {prev_tx_temp}°C to {tx_temp}°C (above {rapid_transmitter_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
149
150
log_line=f"{current_time},SHUTDOWN,TX device temperature exceeded rapid temp increase shutoff threshold\n"
if (amb_temp-prev_amb_temp) >rapid_temp_increase_per_second_shutoff_C:
159
-
logger.warning(f"Ambient temperature rose from {prev_amb_temp}°C to {amb_temp}°C (above {rapid_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
159
+
if (amb_temp-prev_amb_temp) >rapid_transmitter_temp_increase_per_second_shutoff_C:
160
+
logger.warning(f"Ambient temperature rose from {prev_amb_temp}°C to {amb_temp}°C (above {rapid_transmitter_temp_increase_per_second_shutoff_C}°C threshold) within {log_interval}s.")
160
161
log_line=f"{current_time},SHUTDOWN,Ambient temperature exceeded rapid temp increase shutoff threshold\n"
161
162
shutdown=True
162
163
else:
@@ -296,7 +297,8 @@ def log_temperature():
296
297
Duty Cycle: {duty_cycle}%\n\
297
298
Use External Power Supply: {use_external_power_supply}\n\
298
299
Initial Temp Safety Shutoff: Increase to {rapid_temp_shutoff_C}°C within {rapid_temp_shutoff_seconds}s of starting.\n\
299
-
General Temp Safety Shutoff: Increase of {rapid_temp_increase_per_second_shutoff_C}°C within {log_interval}s at any point.\n")
300
+
TX Temp Safety Shutoff: Increase of {rapid_transmitter_temp_increase_per_second_shutoff_C}°C within {log_interval}s at any point.\n\
301
+
Console Temp Safety Shutoff: Increase of {rapid_console_temp_increase_per_second_shutoff_C}°C within {log_interval}s at any point.\n")
0 commit comments