OSTC tools: prevent unknown dc family

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-21 21:58:10 -07:00
parent 66375689b8
commit 99bcdb3f30

View file

@ -119,6 +119,9 @@ void ostctools_import(const char *file, struct dive_table *divetable)
case 0x23:
dc_fam = DC_FAMILY_HW_OSTC3;
break;
default:
fprintf(stderr, "got unknown dc family %x\n", buffer[2]);
dc_fam = DC_FAMILY_NULL;
}
// Prepare data to pass to libdivecomputer. OSTC protocol doesn't include