From 6332795d28cb7b8c7637f0320a6d4b75545f8eb2 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Fri, 14 Sep 2018 16:02:16 +0200 Subject: [PATCH] Oprava indexu, pouziti rychlejsi funkce z RF24 --- BTLE.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BTLE.cpp b/BTLE.cpp index 8a107b0..1501994 100644 --- a/BTLE.cpp +++ b/BTLE.cpp @@ -360,7 +360,7 @@ bool BTLE::eddystoneURL(const char *url){ chunk(buffer,pls)->size = 0x03; // chunk size: 3 chunk(buffer,pls)->type = 0x03; // chunk type: chunk(buffer,pls)->data[0]= 0xaa; - chunk(buffer,pls)->data[0]= 0xfe; + chunk(buffer,pls)->data[1]= 0xfe; pls += 4; // add eddystone service + frame packet @@ -392,7 +392,8 @@ bool BTLE::eddystoneURL(const char *url){ // flush buffers and send radio->stopListening(); - radio->write( outbuf, pls+11 ); + radio->startWrite(outbuf, pls+11 ); +// radio->write(outbuf, pls+11 ); return true; -} \ No newline at end of file +}