changed address option to hex, added answer option

This commit is contained in:
john30
2014-12-03 20:58:02 +01:00
parent eff24a8b06
commit 53a5b0b809
+4 -1
View File
@@ -43,9 +43,12 @@ void define_args()
A.addText("Options:\n");
A.addOption("address", "a", OptVal("FF"), dt_string, ot_mandatory,
A.addOption("address", "a", OptVal(0xff), dt_hex, ot_mandatory,
"\tebus device address (FF)");
A.addOption("answer", "", OptVal(false), dt_bool, ot_none,
"\tanswers to requests from other devices");
A.addOption("device", "d", OptVal("/dev/ttyUSB0"), dt_string, ot_mandatory,
"\tebus device (serial or network) (/dev/ttyUSB0)");