You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devices/firmata/firmware.go

16 lines
225 B
Go

package firmata
import (
"fmt"
)
type FirmwareReport struct {
Major byte
Minor byte
Name []byte
}
func (r FirmwareReport) String() string {
return fmt.Sprintf("%s [%d.%d]", TwoByteString(r.Name), r.Major, r.Minor)
}