blob: 0f83a3181ba923c3a343f2847cb252eca490fdc1 [file] [log] [blame]
//
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "ConnectionAcknowledgedCommandHandler.hpp"
#include <armnn/Exceptions.hpp>
namespace armnn
{
namespace profiling
{
void ConnectionAcknowledgedCommandHandler::operator()(const Packet& packet)
{
if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 1u))
{
throw armnn::Exception(std::string("Expected Packet family = 0, id = 1 but received family =")
+ std::to_string(packet.GetPacketFamily())
+" id = " + std::to_string(packet.GetPacketId()));
}
m_StateMachine.TransitionToState(ProfilingState::Active);
}
} // namespace profiling
} // namespace armnn