tok: improve the nmea_calc_crc function a bit

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>