mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Add model to statusupdate
This commit is contained in:
parent
5e4316cd3e
commit
c457ad02dd
@ -3,12 +3,15 @@
|
||||
|
||||
#include "device.h"
|
||||
|
||||
#define Q(x) #x
|
||||
#define QUOTE(x) Q(x)
|
||||
|
||||
namespace dev {
|
||||
|
||||
const char* BaseDevice::get_model()
|
||||
{
|
||||
#ifdef HASP_MODEL
|
||||
return HASP_MODEL;
|
||||
return QUOTE(HASP_MODEL);
|
||||
#else
|
||||
return PIOENV;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user