Browse Source

Make unknown units in parse_speed into warnings and not fatal.

tags/gpsbabel_1_5_4
Robert Lipe 3 years ago
parent
commit
4532ceb7b9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      parse.cc

+ 1
- 1
parse.cc View File

@@ -137,7 +137,7 @@ parse_speed(const char* str, double* val, const double scale, const char* module
} else if (case_ignore_strcmp(unit, "mih") == 0) {
*val = MPH_TO_MPS(*val);
} else {
fatal("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
warning("%s: Unsupported speed unit '%s' in item '%s'!\n", module, unit, str);
}

return 2;


Loading…
Cancel
Save