Skip to content

Commit 49a4ab3

Browse files
committed
fixed build
1 parent c868672 commit 49a4ab3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

trikGui/controller.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Controller::Controller(const QString &configPath)
4747

4848
trikKernel::Configurer configurer(correctedConfigPath + "system-config.xml"
4949
, correctedConfigPath + "model-config.xml");
50-
//configurer.attributeByDevice("gamepad", "optional");
5150

5251
mGamepad.reset(trikNetwork::GamepadFactory::create(configurer));
5352
connect(mGamepad.data(), SIGNAL(disconnect()), this, SIGNAL(gamepadDisconnected()));
@@ -137,10 +136,11 @@ bool Controller::communicatorConnectionStatus()
137136

138137
bool Controller::gamepadConnectionStatus() const
139138
{
140-
if (mGamepad != nullptr){
139+
if (mGamepad != nullptr) {
141140
return mGamepad->isConnected();
142-
}
141+
} else {
143142
return false;
143+
}
144144
}
145145

146146
void Controller::updateCommunicatorStatus()

0 commit comments

Comments
 (0)