summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-08-24 12:50:58 -0500
committerJohn Klug <john.klug@multitech.com>2017-08-24 12:50:58 -0500
commit6a28ad8c7e09008c0897ad4879ffb3b7a798d92e (patch)
treeca77cc689161e199fe4899bd1e91996dc6c3edac /src
parent3c76035d2519aba33a10d672b3df4f0ab3e29ce8 (diff)
downloadmts-id-eeprom-6a28ad8c7e09008c0897ad4879ffb3b7a798d92e.tar.gz
mts-id-eeprom-6a28ad8c7e09008c0897ad4879ffb3b7a798d92e.tar.bz2
mts-id-eeprom-6a28ad8c7e09008c0897ad4879ffb3b7a798d92e.zip
mts-fpga-loader not for use on MTCDT yet0.3.3
Diffstat (limited to 'src')
-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"