mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-23 15:38:14 -08:00
Randomize flipper color
This commit is contained in:
@@ -32,7 +32,7 @@ void GpsInterface::begin() {
|
|||||||
|
|
||||||
MicroNMEA::sendSentence(Serial2, "$PSTMSRR");
|
MicroNMEA::sendSentence(Serial2, "$PSTMSRR");
|
||||||
|
|
||||||
delay(1900);
|
delay(1000);
|
||||||
|
|
||||||
if (Serial2.available()) {
|
if (Serial2.available()) {
|
||||||
Serial.println("GPS Attached Successfully");
|
Serial.println("GPS Attached Successfully");
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ extern "C" {
|
|||||||
|
|
||||||
AdvData_Raw[i++] = 0x03; // Incomplete List of 16-bit Service UUIDs length
|
AdvData_Raw[i++] = 0x03; // Incomplete List of 16-bit Service UUIDs length
|
||||||
AdvData_Raw[i++] = 0x02; // Incomplete List of 16-bit Service UUIDs type
|
AdvData_Raw[i++] = 0x02; // Incomplete List of 16-bit Service UUIDs type
|
||||||
AdvData_Raw[i++] = 0x81; // Service UUID (part of hex dump)
|
AdvData_Raw[i++] = 0x80 + (rand() % 3) + 1; // Service UUID (part of hex dump)
|
||||||
AdvData_Raw[i++] = 0x30;
|
AdvData_Raw[i++] = 0x30;
|
||||||
|
|
||||||
AdvData_Raw[i++] = 0x02; // TX Power level length
|
AdvData_Raw[i++] = 0x02; // TX Power level length
|
||||||
|
|||||||
Reference in New Issue
Block a user