diff --git a/epicardium/ble/ble_main.c b/epicardium/ble/ble_main.c index 3fec7ce48c3afb1197a62a7fbb0a1a63711926aa..4336624d64a7a7fd4f64767cbc22d1962333479b 100644 --- a/epicardium/ble/ble_main.c +++ b/epicardium/ble/ble_main.c @@ -122,11 +122,9 @@ static const smpCfg_t bleSmpCfg = 16, /*! Maximum encryption key length */ 3, /*! Attempts to trigger 'repeated attempts' timeout */ DM_AUTH_MITM_FLAG, /*! Device authentication requirements */ - - /* TODO: The following three parameters should probably get proper values */ - 0, /*! Maximum 'Repeated attempts' timeout in msec */ - 0, /*! Time msec before attemptExp decreases */ - 0, /*! Exponent to raise attemptTimeout on maxAttempts */ + 64000, /*! Maximum 'Repeated attempts' timeout in msec */ + 64000, /*! Time msec before attemptExp decreases */ + 2, /*! Exponent to raise attemptTimeout on maxAttempts */ }; /* Configuration structure */ @@ -415,9 +413,9 @@ static void bleProcMsg(bleMsg_t *pMsg) case DM_CONN_OPEN_IND: connOpen = &pMsg->dm.connOpen; LOG_INFO("ble", "connection from %02X:%02X:%02X:%02X:%02X:%02X opened", - connOpen->peerAddr[0], connOpen->peerAddr[1], - connOpen->peerAddr[2], connOpen->peerAddr[3], - connOpen->peerAddr[4], connOpen->peerAddr[5]); + connOpen->peerAddr[5], connOpen->peerAddr[4], + connOpen->peerAddr[3], connOpen->peerAddr[2], + connOpen->peerAddr[1], connOpen->peerAddr[0]); BasProcMsg(&pMsg->hdr); uiEvent = APP_UI_CONN_OPEN; break;