From daebd0ad0e49f7577a45c182d738f03b157d05df Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 17 Dec 2020 09:09:49 +0100 Subject: [PATCH] core: correct AL* tankinfo sizes. Recently (d16a9f118a) the tankinfo table was made dynamic, which means that the default tankinfos are added programatically. Thereby, the wrong function was used for AL* type of cylinders: metric instead of imperial. Fix those. Reported-by: Michael Andreen Signed-off-by: Berthold Stoeger --- core/equipment.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/equipment.c b/core/equipment.c index af6f092a9..0fd7644b7 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -253,12 +253,12 @@ static void add_default_tank_infos(struct tank_info_table *table) add_tank_info_metric(table, "11.1ℓ", 11100, 0); /* Most common AL cylinders */ - add_tank_info_metric(table, "AL40", 40, 3000); - add_tank_info_metric(table, "AL50", 50, 3000); - add_tank_info_metric(table, "AL63", 63, 3000); - add_tank_info_metric(table, "AL72", 72, 3000); - add_tank_info_metric(table, "AL80", 80, 3000); - add_tank_info_metric(table, "AL100", 100, 3300); + add_tank_info_imperial(table, "AL40", 40, 3000); + add_tank_info_imperial(table, "AL50", 50, 3000); + add_tank_info_imperial(table, "AL63", 63, 3000); + add_tank_info_imperial(table, "AL72", 72, 3000); + add_tank_info_imperial(table, "AL80", 80, 3000); + add_tank_info_imperial(table, "AL100", 100, 3300); /* Metric AL cylinders */ add_tank_info_metric(table, "ALU7", 7000, 200);