Skip to content

Commit

Permalink
chore: Minor log improvements #322
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk authored Dec 22, 2021
2 parents 9f51663 + ffc1f96 commit ca6c174
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/joytabwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ void JoyTabWidget::changeJoyConfig(int index)
removeCurrentButtons();
emit forceTabUnflash(this);

qDebug() << "SDL Current Powerl Level: " << SDL_JoystickCurrentPowerLevel(m_joystick->getJoyHandle()) << "\n";
qDebug() << "SDL Current Power Level: " << SDL_JoystickCurrentPowerLevel(m_joystick->getJoyHandle()) << "\n";

if (SDL_JoystickCurrentPowerLevel(m_joystick->getJoyHandle()) == SDL_JOYSTICK_POWER_WIRED ||
SDL_JoystickCurrentPowerLevel(m_joystick->getJoyHandle()) == SDL_JOYSTICK_POWER_UNKNOWN)
Expand Down
4 changes: 1 addition & 3 deletions src/joybutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3066,16 +3066,14 @@ void JoyButton::removeAssignedSlot(int index)

void JoyButton::clearSlotsEventReset(bool clearSignalEmit)
{
qWarning() << "RECEIVED";
QWriteLocker tempAssignLocker(&assignmentsLock);

resetSlotsProp();
stopTimers(true, false, false);
releaseActiveSlots();
clearAssignedSlots(clearSignalEmit);
clearQueues();

qWarning() << "all current slots and previous slots ale cleared";
DEBUG() << "all current slots and previous slots ale cleared";
}

void JoyButton::eventReset()
Expand Down
2 changes: 2 additions & 0 deletions src/uihelpers/joytabwidgethelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "inputdevice.h"
#include "joybutton.h"
#include "joybuttonslot.h"
#include "logger.h"
#include "xml/inputdevicexml.h"
#include "xmlconfigreader.h"
#include "xmlconfigwriter.h"
Expand Down Expand Up @@ -89,6 +90,7 @@ bool JoyTabWidgetHelper::readConfigFile(QString filepath)
device->establishPropertyUpdatedConnection();

result = !this->reader->hasError();
VERBOSE() << "Loading config file: " << filepath << (result ? " succeeded." : " failed.");
return result;
}

Expand Down

0 comments on commit ca6c174

Please sign in to comment.