fix: Only remove topbar widget zone if GPS active

Fixes #1718
This commit is contained in:
Peter Feerick
2022-03-22 19:44:25 +10:00
parent 6e872e5823
commit 08ffcc726a
@@ -34,7 +34,7 @@ TopbarImpl::TopbarImpl(Window * parent) :
unsigned int TopbarImpl::getZonesCount() const
{
#if defined(INTERNAL_GPS)
if (hasSerialMode(UART_MODE_GPS)) {
if (hasSerialMode(UART_MODE_GPS) != -1) {
return MAX_TOPBAR_ZONES-1;
}
#endif