/**
 * Run the current RDM callback
 */
void MockRDMController::RunRDMCallback(ola::rdm::rdm_response_code code,
                                       RDMResponse *response,
                                       const string &packet) {
  vector<string> packets;
  if (!packet.empty())
    packets.push_back(packet);
  CPPUNIT_ASSERT(m_rdm_callback);
  RDMCallback *callback = m_rdm_callback;
  m_rdm_callback = NULL;
  callback->Run(code, response, packets);
}
/**
 * Run the current RDM callback
 */
void MockRDMController::RunRDMCallback(RDMReply *reply) {
  OLA_ASSERT_TRUE(m_rdm_callback);
  RDMCallback *callback = m_rdm_callback;
  m_rdm_callback = NULL;
  callback->Run(reply);
}