mirror of
https://github.com/esphome/esphome.git
synced 2025-04-11 21:30:29 +01:00
fix clang-format
This commit is contained in:
parent
9027cebeeb
commit
3fb3f3e098
@ -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:
|
||||
// UUID, Major, Minor, RSSI @ 1M
|
||||
BLEBeacon beacon(beaconUuid, 1, 2, -54);
|
||||
BLEBeacon ble_beacon(beaconUuid, 1, 2, -54);
|
||||
|
||||
void startAdv(void) {
|
||||
// Advertising packet
|
||||
// Set the beacon payload using the BLEBeacon class populated
|
||||
// earlier in this example
|
||||
Bluefruit.Advertising.setBeacon(beacon);
|
||||
Bluefruit.Advertising.setBeacon(ble_beacon);
|
||||
|
||||
// Secondary Scan Response packet (optional)
|
||||
// Since there is no room for 'Name' in Advertising packet
|
||||
@ -62,7 +62,7 @@ void Beacon::setup() {
|
||||
Bluefruit.setName("ESPHome");
|
||||
|
||||
// Manufacturer ID is required for Manufacturer Specific Data
|
||||
beacon.setManufacturer(MANUFACTURER_ID);
|
||||
ble_beacon.setManufacturer(MANUFACTURER_ID);
|
||||
|
||||
// Setup the advertising packet
|
||||
startAdv();
|
||||
|
@ -50,12 +50,12 @@ OTAComponent::OTAComponent() { ota::global_ota_component = this; }
|
||||
void OTAComponent::setup() { mgmt_callback_register(&img_mgmt_callback); }
|
||||
|
||||
void OTAComponent::loop() {
|
||||
if (false == _is_confirmed){
|
||||
if (false == _is_confirmed) {
|
||||
_is_confirmed = boot_is_img_confirmed();
|
||||
if (false == _is_confirmed){
|
||||
if(boot_write_img_confirmed()){
|
||||
if (false == _is_confirmed) {
|
||||
if (boot_write_img_confirmed()) {
|
||||
ESP_LOGD(TAG, "Unable to confirm image");
|
||||
//TODO reboot
|
||||
// TODO reboot
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ nrf52:
|
||||
# bootloader: mcuboot
|
||||
|
||||
esphome:
|
||||
name: nrf52-test-zephyr
|
||||
name: nrf52-test-nrf
|
||||
|
||||
logger:
|
||||
# level: DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user