<div dir="ltr">When I implemented this, I didn't actually have any i2c devices to test<br>with, and "quick write" sounded scary, and the one person who was<br>testing was fine with the "read byte" method of detection, so that's<br>what I did. Now I have a couple of i2c devices connected to my Raspberry<br>Pi, one of them responds to both "read byte" and "quick write", but the<br>other only responds to "quick write".<br><br>This patch adds -q, and makes it the default (as it is with other i2cdetect<br>implementations).<br><br>I've also improved the --help text slightly, switched to the FLAG()<br>macro, got rid of the not-super-clear error message if you don't have<br>any i2c buses (the other implementations go with Unix-like silence if<br>there are no buses too), and improved the error message when you supply<br>the wrong number of arguments.<br><br>Probably more to come now I'm actually playing with this myself, but<br>that's enough for one patch.<br>---<br> toys/other/i2ctools.c | 45 +++++++++++++++++++++++++------------------<br> 1 file changed, 26 insertions(+), 19 deletions(-)<br></div>