Re: gpioctl.8: "0x01" given as an example flag, and parsed w/strtonum.
On Fri, Mar 09, 2018 at 09:08:15AM +0200, Artturi Alm wrote: > Hi, > > i don't see how that would work, so before anyone fixes gpioctl to > accept base 16, maybe diff below to fix the man page instead..? > (came up while adding more [flags] usage to the man page.) > > -Artturi > fixed, thanks. jmc > > diff --git usr.sbin/gpioctl/gpioctl.8 usr.sbin/gpioctl/gpioctl.8 > index 0b91a2ce4b6..25d0d302ae3 100644 > --- usr.sbin/gpioctl/gpioctl.8 > +++ usr.sbin/gpioctl/gpioctl.8 > @@ -143,7 +143,7 @@ invert output > When attaching an I2C device, > if the > .Ar flag > -argument is set to 0x01, > +argument is set to 1, > the order of the SDA and SCL signals is reversed > (see > .Xr gpioiic 4 ) . >
gpioctl.8: "0x01" given as an example flag, and parsed w/strtonum.
Hi, i don't see how that would work, so before anyone fixes gpioctl to accept base 16, maybe diff below to fix the man page instead..? (came up while adding more [flags] usage to the man page.) -Artturi diff --git usr.sbin/gpioctl/gpioctl.8 usr.sbin/gpioctl/gpioctl.8 index 0b91a2ce4b6..25d0d302ae3 100644 --- usr.sbin/gpioctl/gpioctl.8 +++ usr.sbin/gpioctl/gpioctl.8 @@ -143,7 +143,7 @@ invert output When attaching an I2C device, if the .Ar flag -argument is set to 0x01, +argument is set to 1, the order of the SDA and SCL signals is reversed (see .Xr gpioiic 4 ) .