use symbolic constant NUM_CCs instead of 7
This commit is contained in:
1 parent
ad8de456bb
commit
32aa1feac7
1 file changed
+1
-1
@@ -570,7 +570,7 @@ bayrad_set_char(Driver * drvthis, int n, char *dat)
|
|||||||
|
|
||||||
//debug(RPT_DEBUG, "Set char %i", n);
|
//debug(RPT_DEBUG, "Set char %i", n);
|
||||||
|
|
||||||
if ((n < 0) || (n > 7)) /* Do we want to the aliased indexes as well (0x98 - 0x9F?) */
|
if ((n < 0) || (n >= NUM_CCs)) /* Do we want to the aliased indexes as well (0x98 - 0x9F?) */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!dat)
|
if (!dat)
|
||||||
|
|||||||
Reference in new issue
Block a user