Fix patch raising the contact limit on Anytone 868/878.
Francois Marier
3 years ago
|
0 |
dmrconfig (1.1+git20190919.e47491e-5) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Fix D868 contact raising patch.
|
|
3 |
|
|
4 |
-- Francois Marier <francois@debian.org> Mon, 21 Sep 2020 16:07:41 -0700
|
|
5 |
|
0 | 6 |
dmrconfig (1.1+git20190919.e47491e-4) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* Add a patch to fix "channel 65536 not found" errors on Anytone 878.
|
1 | 1 |
Description: Raise the contact limit for D868/D878 radios.
|
2 | 2 |
Bug: https://github.com/sergev/dmrconfig/issues/50
|
3 | 3 |
Forwarded: https://github.com/sergev/dmrconfig/pull/56
|
4 | |
Last-Update: 2020-09-19
|
|
4 |
Last-Update: 2020-09-21
|
5 | 5 |
|
6 | 6 |
--- a/d868uv.c
|
7 | 7 |
+++ b/d868uv.c
|
|
14 | 14 |
#define CALLSIGN_SIZE (12*1024*1024) // Size of callsign data
|
15 | 15 |
|
16 | 16 |
//
|
17 | |
@@ -2724,7 +2724,7 @@ static void dump_csv(radio_device_t *radio)
|
18 | |
unsigned index;
|
19 | |
|
20 | |
printf("Map:\n");
|
21 | |
- for (index = 0; index < sz.count; index += 16000) {
|
22 | |
+ for (index = 0; index < sz.count; index += 20000) {
|
23 | |
unsigned n = (sz.count - index) * 8;
|
24 | |
if (n > 128000)
|
25 | |
n = 128000;
|
26 | |
@@ -2921,7 +2921,7 @@ static void d868uv_write_csv(radio_device_t *radio, FILE *csv)
|
27 | |
#ifdef DUMP_NO_WRITE
|
28 | |
printf("Map:\n");
|
29 | |
#endif
|
30 | |
- for (index = 0; index < sz.count; index += 16000) {
|
31 | |
+ for (index = 0; index < sz.count; index += 20000) {
|
32 | |
unsigned n = (sz.count - index) * 8;
|
33 | |
if (n > 128000)
|
34 | |
n = 128000;
|