Skip to content

Commit

Permalink
Add get_errorcode to RichenPower
Browse files Browse the repository at this point in the history
  • Loading branch information
EosBandi committed Jun 24, 2024
1 parent df1e864 commit 2083ea4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Generator/AP_Generator_RichenPower.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class AP_Generator_RichenPower : public AP_Generator_Backend
// healthy returns true if the generator is not present, or it is
// present, providing telemetry and not indicating an errors.
bool healthy() const override;

// Allow generator error code to pass up to fronten and export to LUA
int get_errorcode(void) override {return last_reading.errors;}

private:

Expand Down

0 comments on commit 2083ea4

Please sign in to comment.