Fix get_model implementation

This commit is contained in:
fvanroie 2021-04-25 22:27:54 +02:00
parent 325e0ed5ba
commit 562d7236ed

View File

@ -1,2 +1,19 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "device.h"
#define Q(x) #x
#define QUOTE(x) Q(x)
namespace dev {
const char* BaseDevice::get_model()
{
#ifdef HASP_MODEL
return QUOTE(HASP_MODEL);
#else
return PIOENV;
#endif
}
}