mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Fix get_model implementation
This commit is contained in:
parent
325e0ed5ba
commit
562d7236ed
@ -1,2 +1,19 @@
|
|||||||
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
|
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
|
||||||
For full license information read the LICENSE file in the project folder */
|
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
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user