Skip to content

Commit

Permalink
Merge pull request ballaswag#109 from krakpot/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ballaswag authored Jul 15, 2024
2 parents 7c16964 + 621d68e commit 07409cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spoolman_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ void SpoolmanPanel::populate_spools(std::vector<json> &sorted_spools) {

auto remaining_len_json = el["/remaining_length"_json_pointer];
auto remaining_len = !remaining_len_json.is_null()
? remaining_len_json.template get<double>() / 100 // mm to m;
: 0.0;
? remaining_len_json.template get<double>() / 1000 // mm to m;
: 0.0;

lv_table_set_cell_value(spool_table, row_idx, 0, std::to_string(id).c_str());
lv_table_set_cell_value(spool_table, row_idx, 1,
Expand Down

0 comments on commit 07409cb

Please sign in to comment.