diff --git a/bcm283x/doc.go b/bcm283x/doc.go index d7ff34a..51453cf 100644 --- a/bcm283x/doc.go +++ b/bcm283x/doc.go @@ -15,9 +15,9 @@ // Aliases for GPCLK0, GPCLK1, GPCLK2 are created for corresponding CLKn pins. // Same for PWM0_OUT and PWM1_OUT, which point respectively to PWM0 and PWM1. // -// For multi-pin IO, you should prefer using the /host/gpioioctl/GPIOChip.LineSet() +// For multi-pin IO, you should prefer using the /host/gpioioctl/GPIOChip.LineSet() // functionality. It's chipset agnostic because it uses the ioctl interfaces, -// and it offers multi-pin WaitForEdge(). +// and it offers multi-pin WaitForEdge(). // // # Datasheet // diff --git a/bcm283x/gpio.go b/bcm283x/gpio.go index 84ed6e8..04e0992 100644 --- a/bcm283x/gpio.go +++ b/bcm283x/gpio.go @@ -1332,7 +1332,7 @@ func (d *driverGPIO) Init() (bool, error) { return false, errors.New("bcm283x CPU not detected") } if len(gpioioctl.Chips) == 0 { - return false, errors.New("gpioioctl not initialized.") + return false, errors.New("gpioioctl not initialized") } // It's kind of messy, some report bcm283x while others show bcm27xx. // Let's play safe here.