Skip to content

Commit adc7ab4

Browse files
committed
Change KeyboardDriver::enterMacroRecordMode signature.
devID do not need to be passed as parameter.
1 parent a02f4dd commit adc7ab4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/daemon/keyboardDriver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void KeyboardDriver::checkDeviceFatalErrors(USBDevice & device, const std::strin
383383
}
384384
}
385385

386-
void KeyboardDriver::enterMacroRecordMode(USBDevice & device, const std::string & devID) {
386+
void KeyboardDriver::enterMacroRecordMode(USBDevice & device) {
387387
#if DEBUGGING_ON
388388
LOG(DEBUG) << device.getID() << " entering macro record mode";
389389
#endif
@@ -469,7 +469,7 @@ void KeyboardDriver::enterMacroRecordMode(USBDevice & device, const std::string
469469
signal.c_str()
470470
);
471471

472-
pDBus->appendStringToBroadcastSignal(devID);
472+
pDBus->appendStringToBroadcastSignal(device.getID());
473473
pDBus->appendStringToBroadcastSignal(device._macroKey);
474474
pDBus->appendUInt8ToBroadcastSignal(bankID);
475475

@@ -659,7 +659,7 @@ void KeyboardDriver::listenLoop(const std::string & devID) {
659659

660660
/* is macro record mode enabled ? */
661661
if( device._MxKeysLedsMask & toEnumType(Leds::GK_LED_MR) ) {
662-
this->enterMacroRecordMode(device, devID);
662+
this->enterMacroRecordMode(device);
663663

664664
/* don't need to update leds status if the mask is already 0 */
665665
if(device._MxKeysLedsMask != 0) {

src/bin/daemon/keyboardDriver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class KeyboardDriver
176176

177177
static const std::vector< ModifierKey > modifierKeys;
178178

179-
void enterMacroRecordMode(USBDevice & device, const std::string & devID);
179+
void enterMacroRecordMode(USBDevice & device);
180180
void LCDScreenLoop(const std::string & devID);
181181
void runMacro(const std::string & devID) const;
182182
void listenLoop(const std::string & devID);

0 commit comments

Comments
 (0)