From 51f720ec2513cfcc06226c5efb6ad016e56e0357 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 30 Oct 2020 18:14:11 -0500 Subject: Add correct eeprom paths by machine type --- configure.ac | 2 +- mtac.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 4396685..8e49919 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([mts-io], [1.0.0]) +AC_INIT([mtac], [4.0.6]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) diff --git a/mtac.c b/mtac.c index 3215fc3..2fefc0e 100644 --- a/mtac.c +++ b/mtac.c @@ -22,8 +22,13 @@ EXPORT_SYMBOL(mts_ap_eeprom); static const char* eeprom_file_name[NUM_AP] = { #if NUM_AP > 0 - "1-0050/eeprom", "1-0052/eeprom" -#endif + #ifdef mtcdt + "1-0050/eeprom", "1-0052/eeprom" + #endif + #ifdef mtcpmhs + "2-0050/eeprom", "2-0052/eeprom" + #endif +#endif // NUM_AP > 0 }; /* info for accessory port (contains function pointers for setup and teardown, -- cgit v1.2.3