Replace hardcoded constants with parameters.
Replace hardcoded constants with parameters.

venkateshshukla/libdivecomputer,Poltsi/libdivecomputer-vms,henrik242/libdivecomputer,henrik242/libdivecomputer,glance-/libdivecomputer,glance-/libdivecomputer,venkateshshukla/libdivecomputer,josh-wambua/libdivecomputer,josh-wambua/libdivecomputer