diff options
Diffstat (limited to 'io-module/mts_eeprom.h')
-rw-r--r-- | io-module/mts_eeprom.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/io-module/mts_eeprom.h b/io-module/mts_eeprom.h index e916809..4a003a4 100644 --- a/io-module/mts_eeprom.h +++ b/io-module/mts_eeprom.h @@ -9,7 +9,10 @@ #endif #endif -/* on-board EEPROM */ +/* on-board EEPROM + * eeprom_layout_version == 0 capa_cellular is ignored + * eeprom_layout_version >= 1 capa_cellular is used for has_radio + */ struct mts_id_eeprom_layout { char vendor_id[32]; char product_id[32]; @@ -67,5 +70,5 @@ do { \ #define CAPA_LORA DEVICE_CAPA_VALUE(1, 3) // on-board lora #define CAPA_BATTERY DEVICE_CAPA_VALUE(1, 4) // 1st battery type #define CAPA_SUPERCAP DEVICE_CAPA_VALUE(1, 5) -#define CAPA_CELLULAR DEVICE_CAPA_VALUE(1,2) // Only valid if eeprom_version > 0 +#define CAPA_CELLULAR DEVICE_CAPA_VALUE(1,2) // Only valid if eeprom_layout_version > 0 #endif /* __MTS_EEPROM_H */ |