diff options
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/m0110.c | 8 | ||||
-rw-r--r-- | tmk_core/protocol/ps2_mouse.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tmk_core/protocol/m0110.c b/tmk_core/protocol/m0110.c index b02a6933d..64f2fa50a 100644 --- a/tmk_core/protocol/m0110.c +++ b/tmk_core/protocol/m0110.c | |||
@@ -95,11 +95,11 @@ void m0110_init(void) { | |||
95 | uint8_t data; | 95 | uint8_t data; |
96 | m0110_send(M0110_MODEL); | 96 | m0110_send(M0110_MODEL); |
97 | data = m0110_recv(); | 97 | data = m0110_recv(); |
98 | print("m0110_init model: "); phex(data); print("\n"); | 98 | print("m0110_init model: "); print_hex8(data); print("\n"); |
99 | 99 | ||
100 | m0110_send(M0110_TEST); | 100 | m0110_send(M0110_TEST); |
101 | data = m0110_recv(); | 101 | data = m0110_recv(); |
102 | print("m0110_init test: "); phex(data); print("\n"); | 102 | print("m0110_init test: "); print_hex8(data); print("\n"); |
103 | */ | 103 | */ |
104 | } | 104 | } |
105 | 105 | ||
@@ -122,7 +122,7 @@ uint8_t m0110_send(uint8_t data) { | |||
122 | return 1; | 122 | return 1; |
123 | ERROR: | 123 | ERROR: |
124 | print("m0110_send err: "); | 124 | print("m0110_send err: "); |
125 | phex(m0110_error); | 125 | print_hex8(m0110_error); |
126 | print("\n"); | 126 | print("\n"); |
127 | _delay_ms(500); | 127 | _delay_ms(500); |
128 | idle(); | 128 | idle(); |
@@ -146,7 +146,7 @@ uint8_t m0110_recv(void) { | |||
146 | return data; | 146 | return data; |
147 | ERROR: | 147 | ERROR: |
148 | print("m0110_recv err: "); | 148 | print("m0110_recv err: "); |
149 | phex(m0110_error); | 149 | print_hex8(m0110_error); |
150 | print("\n"); | 150 | print("\n"); |
151 | _delay_ms(500); | 151 | _delay_ms(500); |
152 | idle(); | 152 | idle(); |
diff --git a/tmk_core/protocol/ps2_mouse.c b/tmk_core/protocol/ps2_mouse.c index 8df465026..5415453a0 100644 --- a/tmk_core/protocol/ps2_mouse.c +++ b/tmk_core/protocol/ps2_mouse.c | |||
@@ -190,7 +190,7 @@ static inline void ps2_mouse_clear_report(report_mouse_t *mouse_report) { | |||
190 | static inline void ps2_mouse_print_report(report_mouse_t *mouse_report) { | 190 | static inline void ps2_mouse_print_report(report_mouse_t *mouse_report) { |
191 | if (!debug_mouse) return; | 191 | if (!debug_mouse) return; |
192 | print("ps2_mouse: ["); | 192 | print("ps2_mouse: ["); |
193 | phex(mouse_report->buttons); | 193 | print_hex8(mouse_report->buttons); |
194 | print("|"); | 194 | print("|"); |
195 | print_hex8((uint8_t)mouse_report->x); | 195 | print_hex8((uint8_t)mouse_report->x); |
196 | print(" "); | 196 | print(" "); |