Skip to content

Commit 0b8ffc9

Browse files
committed
chlib roll to support IAD
1 parent 3f9e1a7 commit 0b8ffc9

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

us/controller.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ void controller_update(uint8_t hub_index,
201201
#endif // _DBG_HID_REPORT_DUMP
202202
#ifdef _DBG_HID_DECODE_DUMP
203203
for (uint8_t i = 0; i < 6; ++i) {
204-
uint16_t value = analog_check(info, data, i);
204+
uint16_t value = analog_check(
205+
info, data, i, settings_get()->analog_polarity[hub][i]);
205206
Serial.printf("analog %d: %x%x\n", i, value >> 8, value & 0xff);
206207
}
207208
Serial.printf("digital: ");

us/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
#include "soft485.h"
1818

1919
// #define _DBG_HUB1_ONLY
20+
// #define _DBG
2021
// #define _DBG_ANALOG
2122
// #define _DBG_DIGITAL
2223

23-
#define VER "2.22"
24+
#define VER "2.22+"
2425

2526
static const char sega_id[] =
2627
"SEGA ENTERPRISES,LTD.compat;MP07-IONA-US;ver" VER;
@@ -269,7 +270,7 @@ void main(void) {
269270

270271
Serial.printf("%s\n", ids[settings->id]);
271272

272-
#if !defined(_DBG_ANALOG) && !defined(_DBG_DIGITAL)
273+
#if !defined(_DBG) && !defined(_DBG_ANALOG) && !defined(_DBG_DIGITAL)
273274
void (*original_putc)(void) = Serial.putc;
274275
Serial.putc = debug_putc;
275276
#endif

0 commit comments

Comments
 (0)