mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 19:54:39 +00:00
Stupid mistake with world_map.bin detection
This commit is contained in:
parent
f00125879d
commit
04c5b4d607
@ -211,7 +211,7 @@ void GeoMap::draw_bearing(const Point origin, const uint32_t angle, uint32_t siz
|
||||
void GeoMapView::focus() {
|
||||
geopos.focus();
|
||||
|
||||
if (!file_error)
|
||||
if (!map_opened)
|
||||
nav_.display_modal("No map", "No world_map.bin file in\n/ADSB/ directory", ABORT, nullptr);
|
||||
}
|
||||
|
||||
@ -280,8 +280,8 @@ GeoMapView::GeoMapView(
|
||||
|
||||
add_child(&geopos);
|
||||
|
||||
file_error = !geomap.init();
|
||||
if (file_error) return;
|
||||
map_opened = geomap.init();
|
||||
if (!map_opened) return;
|
||||
|
||||
setup();
|
||||
|
||||
@ -308,8 +308,8 @@ GeoMapView::GeoMapView(
|
||||
|
||||
add_child(&geopos);
|
||||
|
||||
file_error = !geomap.init();
|
||||
if (file_error) return;
|
||||
map_opened = geomap.init();
|
||||
if (!map_opened) return;
|
||||
|
||||
setup();
|
||||
add_child(&button_ok);
|
||||
|
@ -172,7 +172,7 @@ private:
|
||||
float angle_ { };
|
||||
std::function<void(void)> on_close_ { nullptr };
|
||||
|
||||
bool file_error { };
|
||||
bool map_opened { };
|
||||
|
||||
GeoPos geopos {
|
||||
{ 0, 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user