DM-1801: increase number of grouplists to 76.
This commit is contained in:
parent
f08dd83297
commit
6c6910318f
13
dm1801.c
13
dm1801.c
@ -37,7 +37,7 @@
|
|||||||
#define NCHAN 1024
|
#define NCHAN 1024
|
||||||
#define NCONTACTS 1024
|
#define NCONTACTS 1024
|
||||||
#define NZONES 150
|
#define NZONES 150
|
||||||
#define NGLISTS 40
|
#define NGLISTS 76
|
||||||
#define NSCANL 64
|
#define NSCANL 64
|
||||||
#define NMESSAGES 32
|
#define NMESSAGES 32
|
||||||
|
|
||||||
@ -349,8 +349,9 @@ static void download(radio_device_t *radio)
|
|||||||
{
|
{
|
||||||
int bno;
|
int bno;
|
||||||
|
|
||||||
// Read range 0x80...0x1e29f.
|
// Read range 0x80...0x1ee5f.
|
||||||
for (bno=1; bno<966; bno++) {
|
#define NBLK 989
|
||||||
|
for (bno = 1; bno < NBLK; bno++) {
|
||||||
if (bno >= 248 && bno < 256) {
|
if (bno >= 248 && bno < 256) {
|
||||||
// Skip range 0x7c00...0x8000.
|
// Skip range 0x7c00...0x8000.
|
||||||
continue;
|
continue;
|
||||||
@ -367,7 +368,7 @@ static void download(radio_device_t *radio)
|
|||||||
|
|
||||||
// Clear header and footer.
|
// Clear header and footer.
|
||||||
memset(&radio_mem[0], 0xff, 128);
|
memset(&radio_mem[0], 0xff, 128);
|
||||||
memset(&radio_mem[966*128], 0xff, MEMSZ - 966*128);
|
memset(&radio_mem[0x1ee60], 0xff, MEMSZ - 0x1ee60);
|
||||||
memset(&radio_mem[248*128], 0xff, 8*128);
|
memset(&radio_mem[248*128], 0xff, 8*128);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,8 +391,8 @@ static void dm1801_upload(radio_device_t *radio, int cont_flag)
|
|||||||
{
|
{
|
||||||
int bno;
|
int bno;
|
||||||
|
|
||||||
// Write range 0x80...0x1e29f.
|
// Write range 0x80...0x1ee5f.
|
||||||
for (bno=1; bno<966; bno++) {
|
for (bno = 1; bno < NBLK; bno++) {
|
||||||
if (bno >= 248 && bno < 256) {
|
if (bno >= 248 && bno < 256) {
|
||||||
// Skip range 0x7c00...0x8000.
|
// Skip range 0x7c00...0x8000.
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user