Skip to content

Commit

Permalink
battery: don't initialize _source without constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Dec 7, 2021
1 parent 68e2940 commit 495f1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/battery/battery.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Battery : public ModuleParams
uORB::PublicationMulti<battery_status_s> _battery_status_pub{ORB_ID(battery_status)};

bool _connected{false};
const uint8_t _source{};
const uint8_t _source;
uint8_t _priority{0};
bool _battery_initialized{false};
float _voltage_v{0.f};
Expand Down

0 comments on commit 495f1c9

Please sign in to comment.