Subversion Repositories Projects

Rev

Rev 412 | Rev 489 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 412 Rev 431
Line 358... Line 358...
358
 
358
 
359
/**
359
/**
360
 * wirte a <position> at <x>/<y> assuming it is a gps position for long-/latitude
360
 * wirte a <position> at <x>/<y> assuming it is a gps position for long-/latitude
361
 */
361
 */
362
void write_gps_pos(uint8_t x, uint8_t y, int32_t position) {
362
void write_gps_pos(uint8_t x, uint8_t y, int32_t position) {
363
        if (((uint32_t) position > 2147483647)) {
363
        if (position < 0) {
-
 
364
                position ^= ~0;
364
                position = position - 4294967295;
365
                position++;
365
                write_char_xy(x++, y, 0x49); // minus
366
                write_char_xy(x++, y, 0x49); // minus
366
        } else {
367
        } else {
367
                write_char_xy(x++, y, 0); // clear ('+' would be nice, maybe later)
368
                write_char_xy(x++, y, 0); // clear ('+' would be nice, maybe later)
368
        }
369
        }