make code compatible with up-to-date build environment
These changes make it possible to compile open9x with old (avr-gcc 4.3.3, avr-libc 1.6.7) and up-to-date (avr-gcc 4.6.2, avr-libc 1.8.0) build environments. See Issue 1 for more details.
This commit is contained in:
+2
-2
@@ -402,7 +402,7 @@ void per10ms()
|
||||
|
||||
// Trim switches ...
|
||||
#if defined (PCBV4)
|
||||
static prog_uchar APM crossTrim[]={
|
||||
static const pm_uchar crossTrim[] PROGMEM ={
|
||||
1<<INP_J_TRM_LH_DWN,
|
||||
1<<INP_J_TRM_LH_UP,
|
||||
1<<INP_J_TRM_LV_DWN,
|
||||
@@ -413,7 +413,7 @@ void per10ms()
|
||||
1<<INP_J_TRM_RH_UP
|
||||
};
|
||||
#else // stock original board ...
|
||||
static prog_uchar APM crossTrim[]={
|
||||
static const pm_uchar crossTrim[] PROGMEM ={
|
||||
1<<INP_D_TRM_LH_DWN, // bit 7
|
||||
1<<INP_D_TRM_LH_UP,
|
||||
1<<INP_D_TRM_LV_DWN,
|
||||
|
||||
Reference in New Issue
Block a user