Merge branch 'mopeka_stack_format' into integration

This commit is contained in:
J. Nick Koston
2026-01-05 08:53:08 -10:00
+1 -2
View File
@@ -36,6 +36,7 @@ static const uint8_t MANUFACTURER_NRF52_DATA_LENGTH = 10;
*/
bool MopekaListener::parse_device(const esp32_ble_tracker::ESPBTDevice &device) {
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
// Fetch information about BLE device.
const auto &service_uuids = device.get_service_uuids();
if (service_uuids.size() != 1) {
@@ -62,7 +63,6 @@ bool MopekaListener::parse_device(const esp32_ble_tracker::ESPBTDevice &device)
const bool sync_button_pressed = (manu_data.data[3] & 0x80) != 0;
if (this->show_sensors_without_sync_ || sync_button_pressed) {
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
ESP_LOGI(TAG, "MOPEKA STD (CC2540) SENSOR FOUND: %s", device.address_str_to(addr_buf));
}
@@ -79,7 +79,6 @@ bool MopekaListener::parse_device(const esp32_ble_tracker::ESPBTDevice &device)
const bool sync_button_pressed = (manu_data.data[2] & 0x80) != 0;
if (this->show_sensors_without_sync_ || sync_button_pressed) {
char addr_buf[MAC_ADDRESS_PRETTY_BUFFER_SIZE];
ESP_LOGI(TAG, "MOPEKA PRO (NRF52) SENSOR FOUND: %s", device.address_str_to(addr_buf));
}
}