Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 431 → Rev 412

/C-OSD/trunk/max7456_software_spi.c
360,9 → 360,8
* wirte a <position> at <x>/<y> assuming it is a gps position for long-/latitude
*/
void write_gps_pos(uint8_t x, uint8_t y, int32_t position) {
if (position < 0) {
position ^= ~0;
position++;
if (((uint32_t) position > 2147483647)) {
position = position - 4294967295;
write_char_xy(x++, y, 0x49); // minus
} else {
write_char_xy(x++, y, 0); // clear ('+' would be nice, maybe later)