gps: improve error handling

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-01-14 13:27:08 +01:00
committed by Ron Evans
parent 0b62d4fb4a
commit ecb343b3b3
+4
View File
@@ -38,6 +38,10 @@ func (ge GPSError) Error() string {
return ge.Err.Error() + " " + ge.Info + " " + ge.Sentence
}
func (ge GPSError) Unwrap() error {
return ge.Err
}
// Device wraps a connection to a GPS device.
type Device struct {
buffer []byte