Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 430 → Rev 431

/C-OSD/trunk/max7456_software_spi.c
360,8 → 360,9
* 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 (((uint32_t) position > 2147483647)) {
position = position - 4294967295;
if (position < 0) {
position ^= ~0;
position++;
write_char_xy(x++, y, 0x49); // minus
} else {
write_char_xy(x++, y, 0); // clear ('+' would be nice, maybe later)