echo "Read waypoints from GARMIN GPS receiver"
echo "Be sure that:"
echo "o gpsd is not running"
echo "o /dev/gps is a link to the serial device"
echo "o GARMIN GPS is set to GARMIN transfer mode"
echo "After finished, eventualy set GARMIN back to NMEA mode and restart gpsd"

cd $HOME/.gpsdrive
cp way.txt way.txt.backup
garble -w >x.tmp
wpcvt x.tmp  way.txt
rm x.tmp

