mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Removed battery specific MQTT data
This commit is contained in:
parent
6bce1e3c77
commit
ba2f1c6561
3 changed files with 0 additions and 14 deletions
|
@ -943,15 +943,3 @@ uint16_t Temp_fromRAW_to_F(uint16_t temperature) { //This function feels horrib
|
|||
void init_battery(void) {
|
||||
nof_cellvoltages = 96;
|
||||
}
|
||||
|
||||
#ifdef MQTT
|
||||
void publish_battery_specifics(void) {
|
||||
static bool first_execution = true;
|
||||
if (first_execution == true) {
|
||||
first_execution = false;
|
||||
// Discovery stuff
|
||||
} else {
|
||||
// Publishing stuff
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -37,7 +37,6 @@ uint16_t convert2unsignedint16(int16_t signed_value);
|
|||
uint16_t Temp_fromRAW_to_F(uint16_t temperature);
|
||||
bool is_message_corrupt(CAN_frame_t rx_frame);
|
||||
|
||||
void publish_battery_specifics(void);
|
||||
void init_battery(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,7 +24,6 @@ static void publish_cell_voltages(void);
|
|||
static void publish_values(void) {
|
||||
publish_common_info();
|
||||
publish_cell_voltages();
|
||||
publish_battery_specifics();
|
||||
}
|
||||
|
||||
static void publish_common_info(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue