protocol/aprs: refactored
This commit is contained in:
12
protocol/aprs/weather.go
Normal file
12
protocol/aprs/weather.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package aprs
|
||||
|
||||
type weatherDecoder struct{}
|
||||
|
||||
func (weatherDecoder) CanDecode(frame Frame) bool {
|
||||
switch frame.Raw.Type() {
|
||||
case '!', '#', '$', '*':
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user