From 1d1af9ffb3bfed4c6b8571701f536aed27c76241 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 14 Nov 2014 07:06:02 -0800 Subject: [PATCH] fix some asserts: we have BT working now --- xwords4/common/comms.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 285e1218d..a503d9edb 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -1760,6 +1760,10 @@ preProcess( CommsCtxt* comms, const CommsAddrRec* useAddr, #if defined XWFEATURE_SMS case COMMS_CONN_SMS: break; /* nothing to grab */ +#endif +#ifdef XWFEATURE_BLUETOOTH + case COMMS_CONN_BT: + break; /* nothing to grab */ #endif default: XP_ASSERT(0); @@ -2459,6 +2463,13 @@ augmentChannelAddr( CommsCtxt* comms, AddressRecord* rec, const CommsAddrRec* ad src = &addr->u.sms; siz = sizeof(rec->addr.u.sms); break; +#ifdef XWFEATURE_BLUETOOTH + case COMMS_CONN_BT: + dest = &rec->addr.u.bt; + src = &addr->u.bt; + siz = sizeof(rec->addr.u.bt); + break; +#endif default: XP_ASSERT(0); break;