summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index c56461e..c8763c4 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -88,7 +88,11 @@ extern uint8_t mts_id_eeprom[512];
static struct mts_id_eeprom_layout id_eeprom;
/* daughter card EEPROM */
+#ifdef MTOCGD2
extern uint8_t mts_dc_eeprom[512];
+#else
+uint8_t mts_dc_eeprom[512] = {};
+#endif
static struct mts_dc_eeprom_layout dc_eeprom;
bool daughter_card_capable = false;
@@ -3603,6 +3607,12 @@ static int __init mts_io_init(void)
int ret;
log_info("init: " DRIVER_VERSION);
+
+#ifdef MTOCGD2
+ log_info("MTOCGD2 defined");
+#else
+ log_info("MTOCGD2 undefined");
+#endif
ret = mts_id_eeprom_load();
if (ret) {