Rev 489 | Rev 499 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 489 | Rev 497 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | * You should have received a copy of the GNU General Public License * |
15 | * You should have received a copy of the GNU General Public License * |
16 | * along with this program; if not, write to the * |
16 | * along with this program; if not, write to the * |
17 | * Free Software Foundation, Inc., * |
17 | * Free Software Foundation, Inc., * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ****************************************************************************/ |
19 | ****************************************************************************/ |
- | 20 | ||
- | 21 | #include "main.h" |
|
- | 22 | #include "max7456_software_spi.h" |
|
- | 23 | #include "osd_helpers.h" |
|
- | 24 | #include "osd_ncmode_default.h" |
|
- | 25 | ||
- | 26 | #if !(ALLCHARSDEBUG|(WRITECHARS != -1)) |
|
- | 27 | ||
- | 28 | int osd_ncmode_default() { |
|
20 | if (COSD_FLAGS & COSD_FLAG_HUD) { |
29 | if (COSD_FLAGS & COSD_FLAG_HUD) { |
21 | // write icons at init or after menu/mode-switch |
30 | // write icons at init or after menu/mode-switch |
22 | if (!(COSD_FLAGS2 & COSD_ICONS_WRITTEN)) { |
31 | if (!(COSD_FLAGS2 & COSD_ICONS_WRITTEN)) { |
23 | write_char_xy(5, top_line, 0xCB); // km/h |
32 | write_char_xy(5, top_line, 0xCB); // km/h |
24 | write_char_xy(10, top_line, 0xCA); // RC-transmitter |
33 | write_char_xy(10, top_line, 0xCA); // RC-transmitter |
Line 197... | Line 206... | ||
197 | // remember last values |
206 | // remember last values |
198 | last_RC_Quality = naviData.RC_Quality; |
207 | last_RC_Quality = naviData.RC_Quality; |
199 | last_UBat = naviData.UBat; |
208 | last_UBat = naviData.UBat; |
200 | old_MKFlags = naviData.MKFlags; |
209 | old_MKFlags = naviData.MKFlags; |
201 | seconds_since_last_data = 0; |
210 | seconds_since_last_data = 0; |
- | 211 | ||
- | 212 | return 0; |
|
- | 213 | } |
|
- | 214 | ||
- | 215 | #endif |