Skip to content

Commit

Permalink
Merge pull request #85 from sieren/fix-screenangle
Browse files Browse the repository at this point in the history
Fix missing Hardware Configuration
  • Loading branch information
sieren authored Apr 10, 2020
2 parents e459b70 + 52da495 commit 4ded9b3
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 4ded9b3

Please sign in to comment.