more linux build fixes

This commit is contained in:
Jm
2021-01-09 17:50:58 -08:00
parent 8b2798abd5
commit 5688c8b81e
2 changed files with 9 additions and 3 deletions

View File

@@ -31,11 +31,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "graphics/images.h"
#include "main.h"
#include "mesh-pb-constants.h"
#include "mesh/wifi/WiFiAPClient.h"
#include "plugins/TextMessagePlugin.h"
#include "target_specific.h"
#include "utils.h"
#ifndef NO_ESP32
#include "mesh/wifi/WiFiAPClient.h"
#endif
using namespace meshtastic; /** @todo remove */
namespace graphics
@@ -895,10 +898,12 @@ void Screen::setFrames()
// call a method on debugInfoScreen object (for more details)
normalFrames[numframes++] = &Screen::drawDebugInfoSettingsTrampoline;
#ifndef NO_ESP32
if (isWifiAvailable()) {
// call a method on debugInfoScreen object (for more details)
normalFrames[numframes++] = &Screen::drawDebugInfoWiFiTrampoline;
}
#endif
ui.setFrames(normalFrames, numframes);
ui.enableAllIndicators();