This commit is contained in:
hathach committed 2018-05-24 20:22:12 +07:00
1 parent 9d0979c8be
commit a398152c87
1 file changed
+12 -6
+12 -6
View File
@@ -704,13 +704,19 @@ void AdafruitBluefruit::printInfo(void)
Serial.println();
/*------------- List the paried device -------------*/
Serial.printf(title_fmt, "Peripheral Paired Devices");
Serial.println();
bond_print_list(BLE_GAP_ROLE_PERIPH);
if ( _prph_count )
{
Serial.printf(title_fmt, "Peripheral Paired Devices");
Serial.println();
bond_print_list(BLE_GAP_ROLE_PERIPH);
}
Serial.printf(title_fmt, "Central Paired Devices");
Serial.println();
bond_print_list(BLE_GAP_ROLE_CENTRAL);
if ( _central_count )
{
Serial.printf(title_fmt, "Central Paired Devices");
Serial.println();
bond_print_list(BLE_GAP_ROLE_CENTRAL);
}
Serial.println();
}