shrink guard for channel settings lock

This commit is contained in:
geeksville 2020-09-25 12:52:26 -07:00
parent 3e5f81bf2a
commit d1c3078698

View File

@ -31,8 +31,8 @@ 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 "target_specific.h"
#include "meshwifi/meshwifi.h"
#include "target_specific.h"
#include "utils.h"
using namespace meshtastic; /** @todo remove */
@ -809,6 +809,7 @@ void DebugInfo::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
{
concurrency::LockGuard guard(&lock);
snprintf(channelStr, sizeof(channelStr), "%s", channelName.c_str());
}
// Display power status
if (powerStatus->getHasBattery())
@ -819,7 +820,6 @@ void DebugInfo::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
drawNodes(display, x + (SCREEN_WIDTH * 0.25), y + 2, nodeStatus);
// Display GPS status
drawGPS(display, x + (SCREEN_WIDTH * 0.63), y + 2, gpsStatus);
}
// Draw the channel name
display->drawString(x, y + FONT_HEIGHT, channelStr);