From 0286bf77b73e5a350ede13af0d31cd94c068ef83 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Apr 2019 14:22:16 +0100 Subject: remove last hardcoded 50 --- master/model-50-v2.patch | 12 ++---------- 1 file 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); -- cgit v1.2.3