/**
 * @file co2.cpp
 * @brief Co2 component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "co2.hpp"
#include "logger.hpp"

static const char* TAG = "Co2";

Co2::Co2()
    : m_isInitialized(false)
{
}

Co2::~Co2()
{
    deinitialize();
}

bool Co2::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 3500, asf::logger::Criticality::LOW, "Co2 initialized successfully");
    return true;
}

bool Co2::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool Co2::isInitialized() const
{
    return m_isInitialized;
}
