aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/test_driver.cpp
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-19 00:19:09 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-06-19 00:19:09 +0300
commit43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d (patch)
treecc98ca3ae09ef1b639de0f7b81636b8162301ca0 /tests/test_common/test_driver.cpp
parent36f820be7e80bc8f1f5489373708356cf142c269 (diff)
downloadqmk_firmware-43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d.tar.gz
qmk_firmware-43d8fa5bf1248ce5c1ce5f9cb0d238d794b4475d.zip
More natural interface for setting keyboard leds
Diffstat (limited to 'tests/test_common/test_driver.cpp')
-rw-r--r--tests/test_common/test_driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_common/test_driver.cpp b/tests/test_common/test_driver.cpp
index 9e618aa97..feb80563a 100644
--- a/tests/test_common/test_driver.cpp
+++ b/tests/test_common/test_driver.cpp
@@ -27,7 +27,6 @@ TestDriver::TestDriver()
27 &TestDriver::send_consumer 27 &TestDriver::send_consumer
28 } 28 }
29{ 29{
30
31 host_set_driver(&m_driver); 30 host_set_driver(&m_driver);
32 m_this = this; 31 m_this = this;
33} 32}
@@ -37,7 +36,7 @@ TestDriver::~TestDriver() {
37} 36}
38 37
39uint8_t TestDriver::keyboard_leds(void) { 38uint8_t TestDriver::keyboard_leds(void) {
40 return m_this->keyboard_leds_mock(); 39 return m_this->m_leds;
41} 40}
42 41
43void TestDriver::send_keyboard(report_keyboard_t* report) { 42void TestDriver::send_keyboard(report_keyboard_t* report) {