Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device_battery_num_cells #640

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meshtastic/config.options
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*LoRaConfig.channel_num int_size:16

*PowerConfig.device_battery_ina_address int_size:8
*PowerConfig.device_battery_num_cells int_size:8

*SecurityConfig.public_key max_size:32
*SecurityConfig.private_key max_size:32
Expand Down
5 changes: 5 additions & 0 deletions meshtastic/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ message Config {
*/
uint32 device_battery_ina_address = 9;

/*
* Number of battery cells in use. Battery charge is calculated using (v / num_cells).
*/
uint32 device_battery_num_cells = 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.
Expand Down
Loading