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 <harv@ruin.nu>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-12-17 09:09:49 +01:00 committed by Dirk Hohndel
parent 8d93192537
commit daebd0ad0e

View file

@ -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);