Skip to content

Instantly share code, notes, and snippets.

View Jaredlands's full-sized avatar

Jared Lands Jaredlands

View GitHub Profile
@Jaredlands
Jaredlands / cool_down_to_temp_and_hold.py
Created May 28, 2026 00:24 — forked from wight554/cool_down_to_temp_and_hold.py
Klipper (kalico only) annealing macros
def format_time(minutes):
hours = minutes // 60
mins = minutes % 60
if hours > 0 and mins > 0:
return f"{hours}h{mins}m"
elif hours > 0:
return f"{hours}h"
else:
return f"{mins}m"