]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/maynuo-m97/api.c
hantek-6xxx: Initial driver implementation.
[libsigrok.git] / src / hardware / maynuo-m97 / api.c
index 3910100a97899543e3e1cae0370fa2fd86ae63e9..b2f7e11fa2da57c79eeb334ba1f3f8bcb845e09f 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include "protocol.h"
 
 static const uint32_t scanopts[] = {
@@ -128,13 +129,13 @@ 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<ARRAY_SIZE(supported_models); i++)
+       for (i = 0; i < ARRAY_SIZE(supported_models); i++)
                if (id == supported_models[i].id) {
                        model = &supported_models[i];
                        break;
                }
        if (model == NULL) {
-               sr_err("Unkown model: %d.", id);
+               sr_err("Unknown model: %d.", id);
                return NULL;
        }