From 621d68e7ed134ebb7230d01ab5b79545dbdc6255 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 15 Jul 2024 19:24:43 +0200 Subject: [PATCH] Correction in mm -> m calculation Calculation was off by 10x --- src/spoolman_panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spoolman_panel.cpp b/src/spoolman_panel.cpp index e078781..22abcee 100644 --- a/src/spoolman_panel.cpp +++ b/src/spoolman_panel.cpp @@ -171,8 +171,8 @@ void SpoolmanPanel::populate_spools(std::vector &sorted_spools) { auto remaining_len_json = el["/remaining_length"_json_pointer]; auto remaining_len = !remaining_len_json.is_null() - ? remaining_len_json.template get() / 100 // mm to m; - : 0.0; + ? remaining_len_json.template get() / 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,