Skip to content

Commit

Permalink
Fix linker failure when using BluetoothSerial on latest release with …
Browse files Browse the repository at this point in the history
…Arduino as Component. (#8784)
  • Loading branch information
blackhack authored Oct 27, 2023
1 parent a3d8de6 commit 6357663
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions libraries/BluetoothSerial/src/BTAdvertisedDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ class BTAdvertisedDevice {
public:
virtual ~BTAdvertisedDevice() = default;

virtual BTAddress getAddress();
virtual uint32_t getCOD() const;
virtual std::string getName() const;
virtual int8_t getRSSI() const;
virtual BTAddress getAddress() = 0;
virtual uint32_t getCOD() const = 0;
virtual std::string getName() const = 0;
virtual int8_t getRSSI() const = 0;


virtual bool haveCOD() const;
virtual bool haveName() const;
virtual bool haveRSSI() const;
virtual bool haveCOD() const = 0;
virtual bool haveName() const = 0;
virtual bool haveRSSI() const = 0;

virtual std::string toString();
virtual std::string toString() = 0;
};

class BTAdvertisedDeviceSet : public virtual BTAdvertisedDevice {
Expand Down
6 changes: 3 additions & 3 deletions libraries/BluetoothSerial/src/BTScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class BTScanResults {
public:
virtual ~BTScanResults() = default;

virtual void dump(Print *print = nullptr);
virtual int getCount();
virtual BTAdvertisedDevice* getDevice(int i);
virtual void dump(Print *print = nullptr) = 0;
virtual int getCount() = 0;
virtual BTAdvertisedDevice* getDevice(int i) = 0;
};

class BTScanResultsSet : public BTScanResults {
Expand Down

0 comments on commit 6357663

Please sign in to comment.