AP_OSD: fixed build

This commit is contained in:
Andrew Tridgell 2018-06-25 19:57:08 +10:00
parent 76fd0962e7
commit 43d0a61da0
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ void AP_OSD_MAX7456::reinit()
}
// set all rows to same character black/white level
for (uint8_t x = 0; x < VIDEO_LINES_PAL; x++) {
for (uint8_t x = 0; x < video_lines_pal; x++) {
_dev->write_register(MAX7456ADD_RB0 + x, BWBRIGHTNESS);
}
@ -351,7 +351,7 @@ void AP_OSD_MAX7456::clear()
void AP_OSD_MAX7456::write(uint8_t x, uint8_t y, const char* text, uint8_t char_attr)
{
if (y >= VIDEO_LINES_PAL || text == nullptr) {
if (y >= video_lines_pal || text == nullptr) {
return;
}
while ((x < VIDEO_COLUMNS) && (*text != 0)) {