AP_RangeFinder: serial backend get_reading returns false

This commit is contained in:
Randy Mackay 2020-01-13 14:48:33 +09:00 committed by Andrew Tridgell
parent 9ac10c3af9
commit 266a908b83

View File

@ -29,7 +29,7 @@ protected:
// it is essential that anyone relying on the base-class update to // it is essential that anyone relying on the base-class update to
// implement this: // implement this:
virtual bool get_reading(uint16_t &reading_cm) { return 0; } virtual bool get_reading(uint16_t &reading_cm) { return false; }
// maximum time between readings before we change state to NoData: // maximum time between readings before we change state to NoData:
virtual uint16_t read_timeout_ms() const { return 200; } virtual uint16_t read_timeout_ms() const { return 200; }