mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
Merge branch 'ble_batching' into integration
This commit is contained in:
commit
a353598961
@ -52,7 +52,7 @@ bool BluetoothProxy::parse_device(const esp32_ble_tracker::ESPBTDevice &device)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr size_t FLUSH_BATCH_SIZE = 8;
|
static constexpr size_t FLUSH_BATCH_SIZE = 16;
|
||||||
static std::vector<api::BluetoothLERawAdvertisement> &get_batch_buffer() {
|
static std::vector<api::BluetoothLERawAdvertisement> &get_batch_buffer() {
|
||||||
static std::vector<api::BluetoothLERawAdvertisement> batch_buffer;
|
static std::vector<api::BluetoothLERawAdvertisement> batch_buffer;
|
||||||
return batch_buffer;
|
return batch_buffer;
|
||||||
|
@ -26,9 +26,9 @@ namespace esp32_ble {
|
|||||||
|
|
||||||
// Maximum number of BLE scan results to buffer
|
// Maximum number of BLE scan results to buffer
|
||||||
#ifdef USE_PSRAM
|
#ifdef USE_PSRAM
|
||||||
static constexpr uint8_t SCAN_RESULT_BUFFER_SIZE = 32;
|
static constexpr uint8_t SCAN_RESULT_BUFFER_SIZE = 36;
|
||||||
#else
|
#else
|
||||||
static constexpr uint8_t SCAN_RESULT_BUFFER_SIZE = 20;
|
static constexpr uint8_t SCAN_RESULT_BUFFER_SIZE = 24;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Maximum size of the BLE event queue - must be power of 2 for lock-free queue
|
// Maximum size of the BLE event queue - must be power of 2 for lock-free queue
|
||||||
|
@ -57,14 +57,14 @@ def validate_parent_output_config(value):
|
|||||||
platform = value.get(CONF_PLATFORM)
|
platform = value.get(CONF_PLATFORM)
|
||||||
PWM_GOOD = ["esp8266_pwm", "ledc"]
|
PWM_GOOD = ["esp8266_pwm", "ledc"]
|
||||||
PWM_BAD = [
|
PWM_BAD = [
|
||||||
"ac_dimmer ",
|
"ac_dimmer",
|
||||||
"esp32_dac",
|
"esp32_dac",
|
||||||
"slow_pwm",
|
|
||||||
"mcp4725",
|
"mcp4725",
|
||||||
"pca9685",
|
|
||||||
"tlc59208f",
|
|
||||||
"my9231",
|
"my9231",
|
||||||
|
"pca9685",
|
||||||
|
"slow_pwm",
|
||||||
"sm16716",
|
"sm16716",
|
||||||
|
"tlc59208f",
|
||||||
]
|
]
|
||||||
|
|
||||||
if platform in PWM_BAD:
|
if platform in PWM_BAD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user