Loading files
ec66650c4This file is pinned to the selected release. Download the original to open it in your design tool.
#include "Device/MagDevice.hpp"
#include "Hal/Pgm.h"
namespace Espfc::Device {
const char** MagDevice::getNames()
{
static const char* devChoices[] = {PSTR("AUTO"), PSTR("NONE"), PSTR("HMC5883L"), PSTR("AK8975"),
PSTR("AK8963"), PSTR("QMC5883L"), PSTR("QMC5883P"), NULL};
return devChoices;
}
const char* MagDevice::getName(DeviceType type)
{
if (type >= MAG_MAX) return PSTR("?");
return getNames()[type];
}
} // namespace Espfc::Device