Skip to content

Commit

Permalink
- fixed some display errors for new mode
Browse files Browse the repository at this point in the history
- tagging ...
  • Loading branch information
mathes committed Feb 28, 2011
1 parent 25c9453 commit 8cf2047
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$Id: CHANGES,v 1.20 2011/02/28 12:11:33 mathes Exp $
$Id: CHANGES,v 1.21 2011/02/28 21:06:39 mathes Exp $

CHANGES file for project GPSDisplay
============================================================================
Expand All @@ -18,7 +18,7 @@ ToDo:
- support 4 lines LCD display, for instance ...


Version v1r2: (not yet tagged)
Version v1r2:
-------------

2011/02/28 (thjm) - added new display mode kLatLonGeo for geocaching
Expand Down
22 changes: 11 additions & 11 deletions LCDDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Purpose: Implementation of the generic LCD display stuff
*
* $Id: LCDDisplay.c,v 1.8 2011/02/28 12:11:33 mathes Exp $
* $Id: LCDDisplay.c,v 1.9 2011/02/28 21:06:39 mathes Exp $
*
*/

Expand Down Expand Up @@ -131,32 +131,32 @@ static const char gLCDText_5_0[] PROGMEM = "HDOP: "; // kDOP
static const char gLCDText_5_1[] PROGMEM = "SATS: ";

#if (defined __AVR__)
static const char gLCDText_6_0[] PROGMEM = "LAT: \337 . "; // kLatLonGeo
static const char gLCDText_6_1[] PROGMEM = "LON: \337 . ";
static const char gLCDText_6_0[] PROGMEM = "LAT: \337 . "; // kLatLonGeo
static const char gLCDText_6_1[] PROGMEM = "LON: \337 . ";
#else
static const char gLCDText_6_0[] PROGMEM = "LAT: ° . "; // kLatLonGeo
static const char gLCDText_6_1[] PROGMEM = "LON: ° . ";
static const char gLCDText_6_0[] PROGMEM = "LAT: ° . "; // kLatLonGeo
static const char gLCDText_6_1[] PROGMEM = "LON: ° . ";
#endif /* __AVR__ */


static PGM_P gLCDText_0[] PROGMEM = {
gLCDText_0_0,
gLCDText_1_0,
gLCDText_2_0,
gLCDText_6_0,
gLCDText_3_0,
gLCDText_4_0,
gLCDText_5_0,
gLCDText_6_0,
};

static PGM_P gLCDText_1[] PROGMEM = {
gLCDText_0_1,
gLCDText_1_1,
gLCDText_2_1,
gLCDText_6_1,
gLCDText_3_1,
gLCDText_4_1,
gLCDText_5_1,
gLCDText_6_1,
};

static void LcdDisplayUpdate(void)
Expand Down Expand Up @@ -290,17 +290,17 @@ static void LcdDisplayUpdate(void)
case kLatLonGeo:

src = gGpsData.fLatitude;
gLCDLine_0[5] = *src++;
gLCDLine_0[6] = *src++;
gLCDLine_0[7] = *src++;
for ( int i=9; i<=15; i++ )
for ( int i=8; i<=14; i++ )
gLCDLine_0[i] = *src++;
gLCDLine_0[15] = gGpsData.fNorthSouth[0];

src = gGpsData.fLongitude;
gLCDLine_1[4] = *src++;
gLCDLine_1[5] = *src++;
gLCDLine_1[6] = *src++;
gLCDLine_1[7] = *src++;
for ( int i=9; i<=15; i++ )
for ( int i=8; i<=14; i++ )
gLCDLine_1[i] = *src++;
gLCDLine_1[15] = gGpsData.fEastWest[0];
break;
Expand Down

0 comments on commit 8cf2047

Please sign in to comment.