Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
added more fixes
  • Loading branch information
nihal-sahu committed Apr 4, 2022
commit 6d30e8c2cf38e14c3b8d5d19b380e97b27823686
10 changes: 5 additions & 5 deletions libs/sensors/include/ProximitySwitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ class ProximitySwitch final : Sensor {
ProximitySwitch(PinName proximity_in);

// read() returns 1 for HIGH, 0 for LOW, and 2 for ERROR
float read() override
float alternateRead() override{}
bool getStatus() const override{}
[[nodiscard]] bool reset() override{}
[[nodiscard]] bool update() override{}
float read() override;
float alternateRead() override {}
bool getStatus() const override {}
[[nodiscard]] bool reset() override {}
[[nodiscard]] bool update() override {}

private:
AnalogIn m_proximity_in_adc;
Expand Down