On Fri, Jul 28, 2017 at 10:43 AM, Robert Nelson <[email protected]> wrote: > looks like the "-f" parameter is broken: > > machinekit@beaglebone:~$ config-pin -q P8_07 ; config-pin -q P9_42 > P8_07 Mode: default Direction: in Value: 1 > P9_42 Mode: default Direction: in Value: 0 > machinekit@beaglebone:~$ config-pin -f CRAMPS.bbio > machinekit@beaglebone:~$ config-pin -q P8_07 ; config-pin -q P9_42 > P8_07 Mode: default Direction: in Value: 1 > P9_42 Mode: default Direction: in Value: 0 > > machinekit@beaglebone:~$ config-pin P9_42 spics > machinekit@beaglebone:~$ config-pin -q P9_42 > P9_42 Mode: spics > > Here's the log: > > + AUTOLOAD=0 > + getopts adfhl:q:i: opt > + CMD=file > + getopts adfhl:q:i: opt > + expr 2 - 1 > + shift 1 > + echo_dbg AUTOLOAD=0 > + [ -n ] > + echo_dbg Args: CRAMPS.bbio > + [ -n ] > + readfile CRAMPS.bbio > + [ ! -r CRAMPS.bbio ] > + exec > + read PIN MODE JUNK > + exit 0 > > > full log: > > https://paste.debian.net/978663/
nm that was a brain fart, file was zero size: machinekit@beaglebone:~$ config-pin -q P8_07 ; config-pin -q P9_42 P8_07 Mode: default Direction: in Value: 1 P9_42 Mode: spics machinekit@beaglebone:~$ config-pin -f CRAMPS.bbio machinekit@beaglebone:~$ config-pin -q P8_07 ; config-pin -q P9_42 P8_07 Mode: gpio Direction: in Value: 0 P9_42 Mode: spics -f works fine when the file is what it actually is... Regards, -- Robert Nelson https://rcn-ee.com/ -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
