diff --git a/main/Zblufi.ino b/main/Zblufi.ino index 03e97ed..914453f 100644 --- a/main/Zblufi.ino +++ b/main/Zblufi.ino @@ -142,11 +142,7 @@ void sendCustomDataNotification(const char* message) { notification[2] = getNextSequence(); notification[3] = static_cast(messageLength); memcpy(¬ification[4], message, messageLength); - - struct pkt_info pkts; - pkts.pkt = notification; - pkts.pkt_len = sizeof(notification); - esp_blufi_send_notify(&pkts); + esp_blufi_send_custom_data(notification, sizeof(notification)); } # ifdef BT_CONNECTION_TIMEOUT_MS