mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 14:43:51 +00:00 
			
		
		
		
	[esp32_ble_tracker] Fix on_scan_end trigger compilation without USE_ESP32_BLE_DEVICE
This commit is contained in:
		| @@ -80,14 +80,17 @@ class BLEManufacturerDataAdvertiseTrigger : public Trigger<const adv_data_t &>, | ||||
|   ESPBTUUID uuid_; | ||||
| }; | ||||
|  | ||||
| #endif  // USE_ESP32_BLE_DEVICE | ||||
|  | ||||
| class BLEEndOfScanTrigger : public Trigger<>, public ESPBTDeviceListener { | ||||
|  public: | ||||
|   explicit BLEEndOfScanTrigger(ESP32BLETracker *parent) { parent->register_listener(this); } | ||||
|  | ||||
| #ifdef USE_ESP32_BLE_DEVICE | ||||
|   bool parse_device(const ESPBTDevice &device) override { return false; } | ||||
| #endif | ||||
|   void on_scan_end() override { this->trigger(); } | ||||
| }; | ||||
| #endif  // USE_ESP32_BLE_DEVICE | ||||
|  | ||||
| template<typename... Ts> class ESP32BLEStartScanAction : public Action<Ts...> { | ||||
|  public: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user