mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: callback
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
4011cdd2c3
commit
4a26ea9f66
6 changed files with 8 additions and 8 deletions
|
@ -338,7 +338,7 @@ static void prv_exit(TimelineAppData *data) {
|
|||
#endif
|
||||
}
|
||||
|
||||
static void prv_inactive_timer_callack(void *data) {
|
||||
static void prv_inactive_timer_callback(void *data) {
|
||||
prv_set_state(data, TimelineAppStateInactive);
|
||||
prv_exit(data);
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ static void prv_inactive_timer_callack(void *data) {
|
|||
static void prv_inactive_timer_refresh(TimelineAppData *data) {
|
||||
static const uint32_t INACTIVITY_TIMEOUT_MS = 30 * 1000;
|
||||
s_app_data->inactive_timer_id = evented_timer_register_or_reschedule(
|
||||
s_app_data->inactive_timer_id, INACTIVITY_TIMEOUT_MS, prv_inactive_timer_callack, data);
|
||||
s_app_data->inactive_timer_id, INACTIVITY_TIMEOUT_MS, prv_inactive_timer_callback, data);
|
||||
}
|
||||
|
||||
/////////////////////////////////////
|
||||
|
|
|
@ -161,7 +161,7 @@ static void prv_reschedule_timer(void) {
|
|||
// Called by the qemu_serial driver when we receive an accel packet from the
|
||||
// remote side. This copies the received data into our s_rcv_buffer buffer. It
|
||||
// will gradually be pulled out of that and replayed by the timer callback.
|
||||
void qemu_accel_msg_callack(const uint8_t *data, uint32_t len) {
|
||||
void qemu_accel_msg_callback(const uint8_t *data, uint32_t len) {
|
||||
QemuProtocolAccelHeader *hdr = (QemuProtocolAccelHeader *)data;
|
||||
|
||||
// Validate the packet
|
||||
|
|
|
@ -22,4 +22,4 @@ void qemu_accel_init(void);
|
|||
|
||||
//! Handler called by qemu_serial driver when we receive a QemuProtocol_Accel message
|
||||
//! over the qemu serial connection.
|
||||
void qemu_accel_msg_callack(const uint8_t *data, uint32_t len);
|
||||
void qemu_accel_msg_callback(const uint8_t *data, uint32_t len);
|
||||
|
|
|
@ -55,7 +55,7 @@ void battery_set_fast_charge(bool fast_charge_enabled) {
|
|||
}
|
||||
|
||||
|
||||
void qemu_battery_msg_callack(const uint8_t *data, uint32_t len) {
|
||||
void qemu_battery_msg_callback(const uint8_t *data, uint32_t len) {
|
||||
QemuProtocolBatteryHeader *hdr = (QemuProtocolBatteryHeader *)data;
|
||||
if (len != sizeof(*hdr)) {
|
||||
PBL_LOG(LOG_LEVEL_ERROR, "Invalid packet length");
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
|
||||
//! Handler called by qemu_serial driver when we receive a QemuProtocol_Battery message
|
||||
//! over the qemu serial connection.
|
||||
void qemu_battery_msg_callack(const uint8_t *data, uint32_t len);
|
||||
void qemu_battery_msg_callback(const uint8_t *data, uint32_t len);
|
||||
|
|
|
@ -173,8 +173,8 @@ static const QemuMessageHandler s_qemu_endpoints[] = {
|
|||
{ QemuProtocol_Tap, prv_tap_msg_callback },
|
||||
{ QemuProtocol_BluetoothConnection, prv_bluetooth_connection_msg_callback },
|
||||
{ QemuProtocol_Compass, prv_compass_msg_callback },
|
||||
{ QemuProtocol_Battery, qemu_battery_msg_callack },
|
||||
{ QemuProtocol_Accel, qemu_accel_msg_callack },
|
||||
{ QemuProtocol_Battery, qemu_battery_msg_callback },
|
||||
{ QemuProtocol_Accel, qemu_accel_msg_callback },
|
||||
{ QemuProtocol_TimeFormat, prv_time_format_msg_callback },
|
||||
{ QemuProtocol_TimelinePeek, prv_timeline_peek_msg_callback },
|
||||
{ QemuProtocol_ContentSize, prv_content_size_msg_callback },
|
||||
|
|
Loading…
Add table
Reference in a new issue