* Method parseCapabilities.
*
* @param pc
*/
private void parseCapabilities(final ProtocolArray pc) {
Protocol currentProtocol = null;
final ProtocolInfo[] protocolInfos = pc.getProtocolInfos();
for (final ProtocolInfo info : protocolInfos) {
_log.info(info.getName());
switch (info.getTag()) {
case 'L':
GarminUnitConfiguration.getLinkProtocol().setLinkProtocol(info.getName());
break;
case 'A':
currentProtocol = extractAProtocol(info, currentProtocol);
break;
case 'D':
if (currentProtocol != null)
currentProtocol.addDataType(info.getName());
else
_log.warn("Datatype " + info.getName()
+ " ignored, because no protocol is active.");
break;
}