Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new String member in object to store the name #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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