Fix build system for common image

This commit is contained in:
Daniel Öster 2025-07-22 15:53:21 +03:00
parent 42ef1d2830
commit 7e5f3a7bfe
2 changed files with 1 additions and 6 deletions

View file

@ -354,8 +354,3 @@ void SolxpowInverter::send_system_data() { //System equipment information
transmit_can_frame(&SOLXPOW_4291, can_config.inverter); transmit_can_frame(&SOLXPOW_4291, can_config.inverter);
#endif #endif
} }
void SolxpowInverter::setup(void) { // Performs one time setup at startup over CAN bus
strncpy(datalayer.system.info.inverter_protocol, Name, 63);
datalayer.system.info.inverter_protocol[63] = '\0';
}

View file

@ -10,7 +10,7 @@
class SolxpowInverter : public CanInverterProtocol { class SolxpowInverter : public CanInverterProtocol {
public: public:
void setup(); const char* name() override { return Name; }
void update_values(); void update_values();
void transmit_can(unsigned long currentMillis); void transmit_can(unsigned long currentMillis);
void map_can_frame_to_variable(CAN_frame rx_frame); void map_can_frame_to_variable(CAN_frame rx_frame);