summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name <you@example.com>2019-04-30 14:22:16 +0100
committerYour Name <you@example.com>2019-04-30 14:22:16 +0100
commit0286bf77b73e5a350ede13af0d31cd94c068ef83 (patch)
treeaf0514eb34555955cd5dcfde6d5f1f2bbcdeed70
parent83b48025bb4cdebd8a582c9370dd3e5a9e1eb4e2 (diff)
downloaddatalink-pq-0286bf77b73e5a350ede13af0d31cd94c068ef83.tar.gz
datalink-pq-0286bf77b73e5a350ede13af0d31cd94c068ef83.tar.bz2
datalink-pq-0286bf77b73e5a350ede13af0d31cd94c068ef83.zip
remove last hardcoded 50
-rw-r--r--master/model-50-v2.patch12
1 files changed, 2 insertions, 10 deletions
diff --git a/master/model-50-v2.patch b/master/model-50-v2.patch
index 5c719d9..a486300 100644
--- a/master/model-50-v2.patch
+++ b/master/model-50-v2.patch
@@ -120,7 +120,7 @@ index 9cfc929..9e88500 100644
result->dl_device = type;
result->max_tz = 2;
diff --git a/dl_send_data.c b/dl_send_data.c
-index 3dfa12e..f78f07a 100644
+index 3dfa12e..e68904f 100644
--- a/dl_send_data.c
+++ b/dl_send_data.c
@@ -27,10 +27,16 @@
@@ -140,7 +140,7 @@ index 3dfa12e..f78f07a 100644
#define TIME_70 0x30
#define DSTART_70 0x60
-@@ -53,14 +59,14 @@ static unsigned char datablock2[] = { 0x14, 0x70, 0x02, 0x5a,
+@@ -53,7 +59,7 @@ static unsigned char datablock2[] = { 0x14, 0x70, 0x02, 0x5a,
0x47, 0xb7, 0xa9, 0xcc,
0x74, 0x6f, 0x00, 0x00
};
@@ -149,14 +149,6 @@ index 3dfa12e..f78f07a 100644
1, 0, 0, 0
};
static unsigned char dstart[] = { 5, 0x93, 0, 0, 0 };
- static unsigned char dinfo[] = { 20, 0x90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0
- };
--static unsigned char dspace[] = { 4, 0x91, 0, 0 };
-+static unsigned char dspace[] = { 3, 0x91, 0 };
- static unsigned char dend[] = { 5, 0x92, 0, 0, 0 };
- static unsigned char blank_alarm[] = { 18, 0x50, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0
@@ -94,11 +100,18 @@ int _write_data(int fd, unsigned char *buf, unsigned char *data, int size,
memcpy(buf, dspace, *dspace);