diff --git a/ble/att.c b/ble/att.c index 6d3b9e897..eeb59a515 100644 --- a/ble/att.c +++ b/ble/att.c @@ -38,18 +38,11 @@ #include #include "att.h" - -// from src/utils. -#define READ_BT_16( buffer, pos) ( ((uint16_t) buffer[pos]) | (((uint16_t)buffer[pos+1]) << 8)) +#include // Buetooth Base UUID 00000000-0000-1000-8000-00805F9B34FB in little endian static const uint8_t bluetooth_base_uuid[] = { 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -static void bt_store_16(uint8_t *buffer, uint16_t pos, uint16_t value){ - buffer[pos++] = value; - buffer[pos++] = value >> 8; -} - static void hexdump2(void const *data, int size){ int i; for (i=0; i