X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fagilent-dmm%2Fapi.c;h=084f9b4d89171699c3f87cbd8d3785fb43e8a796;hb=a258204e00715c44b0d013ee3141ce890c8ea71c;hp=b7ae7fb280d95ebace2ca9643d34b88107555dbc;hpb=081c214eace0c9088cbcbd9a3d448f6fac5e98f4;p=libsigrok.git diff --git a/src/hardware/agilent-dmm/api.c b/src/hardware/agilent-dmm/api.c index b7ae7fb2..084f9b4d 100644 --- a/src/hardware/agilent-dmm/api.c +++ b/src/hardware/agilent-dmm/api.c @@ -116,7 +116,7 @@ static GSList *scan(GSList *options) return NULL; serial_flush(serial); - if (serial_write_blocking(serial, "*IDN?\r\n", 7) < 7) { + if (serial_write_blocking(serial, "*IDN?\r\n", 7, SERIAL_WRITE_TIMEOUT_MS) < 7) { sr_err("Unable to send identification string."); return NULL; }