diff --git a/meshtastic/config.options b/meshtastic/config.options index 3f6d81c..597f95d 100644 --- a/meshtastic/config.options +++ b/meshtastic/config.options @@ -17,8 +17,10 @@ *LoRaConfig.channel_num int_size:16 *PowerConfig.device_battery_ina_address int_size:8 +*PowerConfig.ocv max_count:11 +*PowerConfig.ocv int_size:16 *SecurityConfig.public_key max_size:32 *SecurityConfig.private_key max_size:32 *SecurityConfig.admin_key max_size:32 -*SecurityConfig.admin_key max_count:3 +*SecurityConfig.admin_key max_count:3 \ No newline at end of file diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 33eaa58..953a952 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -482,6 +482,12 @@ message Config { */ uint32 device_battery_ina_address = 9; + /* + * Open circuit voltage array (in millivolts) for battery percentage estimation. + * Provide NUM_OCV_POINTS entries from full to empty. If unset, device defaults are used. + */ + repeated uint32 ocv = 10; + /* * If non-zero, we want powermon log outputs. With the particular (bitfield) sources enabled. * Note: we picked an ID of 32 so that lower more efficient IDs can be used for more frequently used options.