mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	cleanup
This commit is contained in:
		| @@ -327,6 +327,7 @@ void ESP32BLE::loop() { | |||||||
|                    gap_event == ESP_GAP_BLE_SCAN_STOP_COMPLETE_EVT) { |                    gap_event == ESP_GAP_BLE_SCAN_STOP_COMPLETE_EVT) { | ||||||
|           // All three scan complete events have the same structure with just status |           // All three scan complete events have the same structure with just status | ||||||
|           // Cast is safe because all three ESP-IDF event structures are identical with just status field |           // Cast is safe because all three ESP-IDF event structures are identical with just status field | ||||||
|  |           // The scan_complete struct already contains our copy of the status (copied in BLEEvent constructor) | ||||||
|           this->real_gap_event_handler_(gap_event, (esp_ble_gap_cb_param_t *) &ble_event->event_.gap.scan_complete); |           this->real_gap_event_handler_(gap_event, (esp_ble_gap_cb_param_t *) &ble_event->event_.gap.scan_complete); | ||||||
|         } else { |         } else { | ||||||
|           // Unexpected GAP event - drop it |           // Unexpected GAP event - drop it | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user