Skip to content

Commit 7b4c549

Browse files
paul-szczepanek-armDonatien Garnier
authored andcommitted
typo in func name
1 parent 1090ea5 commit 7b4c549

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BLE_PeriodicAdvertising/source/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class PeriodicDemo : private mbed::NonCopyable<PeriodicDemo>, public ble::Gap::E
222222
}
223223

224224
/* we will put the battery level data in there and update it every second */
225-
update_paylod();
225+
update_payload();
226226

227227
error = _gap.startPeriodicAdvertising(_adv_handle);
228228

@@ -237,7 +237,7 @@ class PeriodicDemo : private mbed::NonCopyable<PeriodicDemo>, public ble::Gap::E
237237
_event_queue.call_every(1000, this, &PeriodicDemo::update_sensor_value);
238238
}
239239

240-
void update_paylod()
240+
void update_payload()
241241
{
242242
/* advertising payload will have the battery level which we will update */
243243
ble_error_t error = _adv_data_builder.setServiceData(
@@ -480,7 +480,7 @@ class PeriodicDemo : private mbed::NonCopyable<PeriodicDemo>, public ble::Gap::E
480480
}
481481

482482
_battery_service.updateBatteryLevel(_battery_level);
483-
update_paylod();
483+
update_payload();
484484
}
485485

486486
/** Blink LED to show we're running */

0 commit comments

Comments
 (0)