Skip to content

Commit

Permalink
#ifndef bdaddr_t to #ifndef __BLUETOOTH_H
Browse files Browse the repository at this point in the history
  • Loading branch information
William C Bonner committed Nov 14, 2024
1 parent 561943b commit 673b360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions victronbtlelogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ void SignalHandlerSIGALRM(int signal)
std::cout << "[" << getTimeISO8601(true) << "] ***************** SIGALRM: Caught Alarm. *****************" << std::endl;
}
/////////////////////////////////////////////////////////////////////////////
#ifndef bdaddr_t
#ifndef __BLUETOOTH_H
/* BD Address */
typedef struct {
uint8_t b[6];
} __attribute__((packed)) bdaddr_t;
#endif // !bdaddr_t
#endif // !__BLUETOOTH_H
bool operator <(const bdaddr_t& a, const bdaddr_t& b)
{
unsigned long long A = a.b[5];
Expand Down

0 comments on commit 673b360

Please sign in to comment.