[Core] Don't send keyboard reports that propagate no changes to the host (#14065)

This commit is contained in:
Stefan Kerkmann authored and GitHub committed 2021-12-14 10:40:18 -08:00
1 parent ce5a2a7367
commit 8b865a9d64
10 files changed
+51 -71

No files matched your search

-3
View File
@@ -48,7 +48,6 @@ void TestFixture::SetUpTestCase() {
eeconfig_update_debug(debug_config.raw);
TestDriver driver;
EXPECT_CALL(driver, send_keyboard_mock(_));
keyboard_init();
test_logger.info() << "TestFixture setup-up end." << std::endl;
@@ -62,8 +61,6 @@ TestFixture::~TestFixture() {
test_logger.info() << "TestFixture clean-up start." << std::endl;
TestDriver driver;
EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).Times(2);
/* Reset keyboard state. */
clear_all_keys();