1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

fix clang-format

This commit is contained in:
Tomasz Duda
2024-02-13 20:04:12 +01:00
parent 9027cebeeb
commit 3fb3f3e098
3 changed files with 8 additions and 8 deletions

View File

@@ -20,13 +20,13 @@ uint8_t beaconUuid[16] = {0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78,
// A valid Beacon packet consists of the following information: // A valid Beacon packet consists of the following information:
// UUID, Major, Minor, RSSI @ 1M // UUID, Major, Minor, RSSI @ 1M
BLEBeacon beacon(beaconUuid, 1, 2, -54); BLEBeacon ble_beacon(beaconUuid, 1, 2, -54);
void startAdv(void) { void startAdv(void) {
// Advertising packet // Advertising packet
// Set the beacon payload using the BLEBeacon class populated // Set the beacon payload using the BLEBeacon class populated
// earlier in this example // earlier in this example
Bluefruit.Advertising.setBeacon(beacon); Bluefruit.Advertising.setBeacon(ble_beacon);
// Secondary Scan Response packet (optional) // Secondary Scan Response packet (optional)
// Since there is no room for 'Name' in Advertising packet // Since there is no room for 'Name' in Advertising packet
@@ -62,7 +62,7 @@ void Beacon::setup() {
Bluefruit.setName("ESPHome"); Bluefruit.setName("ESPHome");
// Manufacturer ID is required for Manufacturer Specific Data // Manufacturer ID is required for Manufacturer Specific Data
beacon.setManufacturer(MANUFACTURER_ID); ble_beacon.setManufacturer(MANUFACTURER_ID);
// Setup the advertising packet // Setup the advertising packet
startAdv(); startAdv();

View File

@@ -9,7 +9,7 @@ nrf52:
# bootloader: mcuboot # bootloader: mcuboot
esphome: esphome:
name: nrf52-test-zephyr name: nrf52-test-nrf
logger: logger:
# level: DEBUG # level: DEBUG