summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mts_fpga_reg.c4
-rw-r--r--src/mts_fpga_reg.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mts_fpga_reg.c b/src/mts_fpga_reg.c
index 6955219..473868c 100644
--- a/src/mts_fpga_reg.c
+++ b/src/mts_fpga_reg.c
@@ -110,7 +110,7 @@ int hw_check(mts_hw *mts) {
}
fscanf(fp, "%[^\n]", mts->dev_hw);
fclose(fp);
- if (strstr(mts->dev_hw, "MTCAP")) {
+ if (strstr(mts->dev_hw, "MTCAP-0.1")) {
if (mts->path != 0) {
printf("Path argument is not supported on this device. Exiting.\n");
return MTAC_INVALID_HARDWARE;
@@ -138,7 +138,7 @@ int hw_check(mts_hw *mts) {
return MTAC_SUCCESS;
}
} else
- printf("This software is licensed only for use on MultiTech products.\n");
+ printf("This software is licensed only for supported MultiTech products.\n");
return MTAC_INVALID_HARDWARE;
}
diff --git a/src/mts_fpga_reg.h b/src/mts_fpga_reg.h
index d67a60c..8efc191 100644
--- a/src/mts_fpga_reg.h
+++ b/src/mts_fpga_reg.h
@@ -38,8 +38,8 @@ typedef struct mts {
#define MTCDT "MTAC-LORA-1.5"
#define MTCAP "MTCAP-LORA-1.5"
#define HW_FILE "/sys/devices/platform/mts-io/hw-version"
-#define MTCDT_DEFAULT_FILE "mtcdt-fpga-v31.hex"
-#define MTCAP_DEFAULT_FILE "mtcap-fpga-v31.hex"
+#define MTCDT_DEFAULT_FILE "/usr/lib/mts-flash-binaries/mtcdt-fpga-v31.hex"
+#define MTCAP_DEFAULT_FILE "/usr/lib/mts-flash-binaries/mtcap-fpga-v31.hex"
#define CRESET "/sys/devices/platform/mts-io/lora/creset"
#define CRESET_AP1 "/sys/devices/platform/mts-io/ap1/creset"
#define CRESET_AP2 "/sys/devices/platform/mts-io/ap2/creset"