Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion NexObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ NexObject::NexObject(uint8_t pid, uint8_t cid, const char *name)
{
this->__pid = pid;
this->__cid = cid;
this->__name = name;
this->__name_str = name;
this->__name = __name_str.c_str();
}

uint8_t NexObject::getObjPid(void)
Expand Down
1 change: 1 addition & 0 deletions NexObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class NexObject
uint8_t __pid; /* Page ID */
uint8_t __cid; /* Component ID */
const char *__name; /* An unique name */
String __name_str; /* space to store the name */
};
/**
* @}
Expand Down