From d114c685d058b555803ca62d21e849dd7b6dd804 Mon Sep 17 00:00:00 2001 From: JDierkse Date: Thu, 31 Jan 2019 10:38:37 +0100 Subject: [PATCH] Fix Bluetooth Ping --- Bluetooth/Functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bluetooth/Functions.cpp b/Bluetooth/Functions.cpp index b234d1d..2f87185 100644 --- a/Bluetooth/Functions.cpp +++ b/Bluetooth/Functions.cpp @@ -32,7 +32,7 @@ bool Functions::Ping(const std::string& macAddress) memset(&socketAddress, 0, sizeof(socketAddress)); socketAddress.l2_family = AF_BLUETOOTH; - bdaddr_t bdaddr; + bdaddr_t bdaddr({{0, 0, 0, 0, 0, 0}}); bacpy(&socketAddress.l2_bdaddr, &bdaddr); if (bind(socketDescriptor, reinterpret_cast(&socketAddress), sizeof(socketAddress)) < 0)