diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/electronics/gpsimprocessor.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/electronics/gpsimprocessor.cpp b/src/electronics/gpsimprocessor.cpp index 587fc6f..c5ad638 100644 --- a/src/electronics/gpsimprocessor.cpp +++ b/src/electronics/gpsimprocessor.cpp @@ -736,7 +736,13 @@ RegisterSet::RegisterSet( pic_processor * picProcessor ) m_nameToRegisterMap[ info->name() ] = info; } - RegisterInfo * info = new RegisterInfo( picProcessor->W ); + RegisterInfo * info = new RegisterInfo( +#ifdef GPSIM_0_27_0 + picProcessor->Wreg +#else + picProcessor->W +#endif + ); m_registers.append( info ); m_nameToRegisterMap[ info->name() ] = info; } |