Skip to content

Commit

Permalink
Fix missing Hardware Configuration
Browse files Browse the repository at this point in the history
Reading out the HW configuration was missing as well as
setting the screen rotation angle at the right point.
  • Loading branch information
sieren committed Apr 10, 2020
1 parent e459b70 commit 52da495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/AppScreen.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace gfx
registerWifiCallback();
mpAppContext->registerStateCallback(std::bind(&AppScreen::appContextChanged, this, _1));
mpAppContext->getMQTTConnection()->registerConnectionStatusCallback(std::bind(&UIStatusBarWidget::mqttConnectionChanged, mpStatusBar.get(), _1));

mTft.setRotation(mpAppContext->getModel().mHardwareConfig.mScreenRotationAngle);
mpSubViews.clear();
presentMenu();
}
Expand Down
1 change: 1 addition & 0 deletions main/fs/ConfigReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace fs
model.mTimeZone = getTimeZone(rootObj);
model.mMQTTServerConfig = getMQTTConfig(rootObj);
model.mMQTTGroups = getMQTTGroups(rootObj);
model.mHardwareConfig = getHardwareConfig(rootObj);
return model;
}

Expand Down

0 comments on commit 52da495

Please sign in to comment.