diff options
author | aiju <devnull@localhost> | 2018-03-07 20:44:55 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2018-03-07 20:44:55 +0000 |
commit | 657f0ed99a23c2ee6872d890c8ca8ef97fed9ac9 (patch) | |
tree | 1c49b0bdd9858a1ab57ac034feea2f68e3c40cd4 /sys/src/cmd/nusb/cam/ctl.c | |
parent | 2da5e135dc5d1d50ac2a760fe1bc693b6008087c (diff) |
nusb/cam: ctl message fixes
Diffstat (limited to 'sys/src/cmd/nusb/cam/ctl.c')
-rw-r--r-- | sys/src/cmd/nusb/cam/ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/nusb/cam/ctl.c b/sys/src/cmd/nusb/cam/ctl.c index 4cdafc6ae..88398c6e0 100644 --- a/sys/src/cmd/nusb/cam/ctl.c +++ b/sys/src/cmd/nusb/cam/ctl.c @@ -507,7 +507,7 @@ ctlwrite(Cam *c, char *msg) p = findparam(f[1]); if(p == nil) return -1; - if((uint)uid >= nunit || unit[uid] == nil){ + if(p->type != PARAMSPEC && ((uint)uid >= nunit || unit[uid] == nil)){ werrstr("no such unit"); return -1; } |