Diff between 3b6f4afa8c8b852d0ed09ed06b5067701ede0cb8 and db25f7c6fa1a6b5bb470e4c74fbe404c571a4f84
Changed Files
| File | Additions | Deletions | Status |
| proximity/monitor.c | +2 | -1 | modified |
Full Patch
diff --git a/proximity/monitor.c b/proximity/monitor.c
index 2645321..f22d6f4 100644
--- a/proximity/monitor.c
+++ b/proximity/monitor.c
@@ -55,6 +55,7 @@
#define POWER_LEVEL_CHR_UUID 0x2A07
#define IMMEDIATE_TIMEOUT 5
+#define TX_POWER_SIZE 1
enum {
ALERT_NONE = 0,
@@ -211,7 +212,7 @@ static int write_alert_level(struct monitor *monitor)
static void tx_power_read_cb(guint8 status, const guint8 *pdu, guint16 plen,
gpointer user_data)
{
- uint8_t value[ATT_MAX_MTU];
+ uint8_t value[TX_POWER_SIZE];
ssize_t vlen;
if (status != 0) {