Compare commits
1 Commits
74b90f9fee
...
087cf4f808
Author | SHA1 | Date | |
---|---|---|---|
|
087cf4f808 |
@ -23,11 +23,11 @@ bool gadget_bridge_send_toast(gadget_bridge_toast_type_e toast_type, const char
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
bool to_return = true;
|
bool to_return = true;
|
||||||
to_return &= ble_service_send_nus_data((const uint8_t *)"{\"t\":\"", 6);
|
ble_service_send_nus_data((const uint8_t *)"{\"t\":\"", 6);
|
||||||
to_return &= ble_service_send_nus_data((const uint8_t *)_gadget_bridge_toast_type_2_str(toast_type), strlen(_gadget_bridge_toast_type_2_str(toast_type)));
|
ble_service_send_nus_data((const uint8_t *)_gadget_bridge_toast_type_2_str(toast_type), strlen(_gadget_bridge_toast_type_2_str(toast_type)));
|
||||||
to_return &= ble_service_send_nus_data((const uint8_t *)"\",\"msg\",\"", 9);
|
ble_service_send_nus_data((const uint8_t *)"\",\"msg\",\"", 9);
|
||||||
to_return &= ble_service_send_nus_data((const uint8_t *)message, strlen(message));
|
ble_service_send_nus_data((const uint8_t *)message, strlen(message));
|
||||||
to_return &= ble_service_send_nus_data((const uint8_t *)"\"}\n", 3);
|
ble_service_send_nus_data((const uint8_t *)"\"}\n", 3);
|
||||||
|
|
||||||
return to_return;
|
return to_return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user