This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
qmk_firmware
mirror of
https://github.com/qmk/qmk_firmware/
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1.6k
Wiki
Activity
Browse Source
Fix unreferenced errors with mingw compiler and unit tests
pull/1491/head
Fred Sundvik
6 years ago
parent
5a25d50168
commit
78545b9509
5 changed files
with
10 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
quantum/keymap_common.c
+4
-1
tests/basic/keymap.c
+3
-0
tests/test_common/matrix.c
+2
-2
tests/test_common/test_fixture.cpp
+1
-1
tests/test_common/test_fixture.hpp
+ 0
- 1
quantum/keymap_common.c
View File
@ -169,7 +169,6 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
}
/
/
translates
key
to
keycode
__attribute__
(
(
weak
)
)
uint16_t
keymap_key_to_keycode
(
uint8_t
layer
,
keypos_t
key
)
{
/
/
Read
entire
word
(
16
bits
)
+ 4
- 1
tests/basic/keymap.c
View File
@ -40,4 +40,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
}
}
return
MACRO_NONE
;
}
;
}
;
void
action_function
(
keyrecord_t
*
record
,
uint8_t
id
,
uint8_t
opt
)
{
}
+ 3
- 0
tests/test_common/matrix.c
View File
@ -58,3 +58,6 @@ void release_key(uint8_t col, uint8_t row) {
void
clear_all_keys
(
void
)
{
memset
(
matrix
,
0
,
sizeof
(
matrix
)
)
;
}
void
led_set
(
uint8_t
usb_led
)
{
}
+ 2
- 2
tests/test_common/test_fixture.cpp
View File
@ -44,8 +44,8 @@ void TestFixture::run_one_scan_loop() {
advance_time
(
1
)
;
}
void
TestFixture
:
:
idle_for
(
uint
time
)
{
for
(
uint
i
=
0
;
i
<
time
;
i
+
+
)
{
void
TestFixture
:
:
idle_for
(
unsigned
time
)
{
for
(
unsigned
i
=
0
;
i
<
time
;
i
+
+
)
{
run_one_scan_loop
(
)
;
}
}
+ 1
- 1
tests/test_common/test_fixture.hpp
View File
@ -26,5 +26,5 @@ public:
static
void
TearDownTestCase
(
)
;
void
run_one_scan_loop
(
)
;
void
idle_for
(
uint
ms
)
;
void
idle_for
(
unsigned
ms
)
;
}
;
Write
Preview
Loading…
Cancel
Save