X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fmaynuo-m97%2Fapi.c;h=919cb862a36c9bec15754f3509ba741b85f284c1;hb=8fff75196f79d60369cc05545409fc567c6b7bf4;hp=3910100a97899543e3e1cae0370fa2fd86ae63e9;hpb=41812aca436805b0614f2a8f31cf2f8ce494aea0;p=libsigrok.git diff --git a/src/hardware/maynuo-m97/api.c b/src/hardware/maynuo-m97/api.c index 3910100a..919cb862 100644 --- a/src/hardware/maynuo-m97/api.c +++ b/src/hardware/maynuo-m97/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" static const uint32_t scanopts[] = { @@ -128,7 +129,7 @@ static struct sr_dev_inst *probe_device(struct sr_modbus_dev_inst *modbus) int ret = maynuo_m97_get_model_version(modbus, &id, &version); if (ret != SR_OK) return NULL; - for (i=0; i