Skip to content

Commit

Permalink
Correction in mm -> m calculation
Browse files Browse the repository at this point in the history
Calculation was off by 10x
  • Loading branch information
krakpot authored Jul 15, 2024
1 parent 7c16964 commit 621d68e
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 621d68e

Please sign in to comment.