more warnings clean up

This commit is contained in:
hathach committed 2019-06-07 15:27:57 +07:00
1 parent a14c2c247e
commit 64e176b7cd
5 files changed
+10 -10

No files matched your search

+4 -2
View File
@@ -887,11 +887,12 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
{
#if CFG_DEBUG >= 1
ble_gap_phys_t* req_phy = &evt->evt.gap_evt.params.phy_update_request.peer_preferred_phys;
char const *phy_str[] = { "Auto", "1 Mbps", "2 Mbps", "Coded" };
(void) req_phy;
(void) phy_str;
LOG_LV1("GAP", "PHY request tx: %s, rx: %s", phy_str[req_phy->tx_phys], phy_str[req_phy->rx_phys]);
#endif
// Tell SoftDevice to choose PHY automatically
ble_gap_phys_t phy = { BLE_GAP_PHY_AUTO, BLE_GAP_PHY_AUTO };
@@ -909,6 +910,7 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
}else
{
char const *phy_str[] = { "Auto", "1 Mbps", "2 Mbps", "Coded" };
(void) phy_str;
LOG_LV1("GAP", "PHY active tx: %s, rx: %s", phy_str[active_phy->tx_phy], phy_str[active_phy->rx_phy]);
}
}
@@ -254,7 +254,7 @@ void bond_print_list(uint8_t role)
char devname[len];
file.read(devname, len);
printf(" %s : %s (%d bytes)\n", file.name(), devname, file.size());
printf(" %s : %s (%lu bytes)\n", file.name(), devname, file.size());
}
}