#include "BurnProtocolDfu.h"
#include "BurnProtocolDfuErrors.h"

BurnProtocolDfu::BurnProtocolDfu() :
    m_dev{new DfuDevice{}} {

}

BurnProtocolDfu::~BurnProtocolDfu() {

}

void BurnProtocolDfu::detect(LQError &err) {
    if (!m_dev) {
        err = BurnProtocolDfuErrors::devNotSet();
    } else {
        m_dev->detect(err);
    }
}
