Skip to content

Commit

Permalink
Fix missing color when uploading using button
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Dec 8, 2024
1 parent 8c458de commit 386f34d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/conf.d/automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ script:
print["command"] = "ams_filament_setting";
print["ams_id"] = 255; //TODO: support multiple AMS
print["tray_id"] = 254; //TODO: support multiple trays
print["tray_color"] = (id(filament_color_hex).state + "FF").c_str();
std::string color = id(filament_color_hex).state + "FF";
print["tray_color"] = color;
print["nozzle_temp_min"] = int8_t(id(filament_min_temp).state);
print["nozzle_temp_max"] = int8_t(id(filament_max_temp).state);
print["tray_type"] = id(filament_type).state.c_str();
Expand Down

0 comments on commit 386f34d

Please sign in to comment.