-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Description
I was unable to change the picture on a picture object.
A little bit of poking about shows the command sent to the nextion is p0.p0.pic=66 p0 is the name of the picture object. It appears that the object name is used twice.
Fix
In NexObject.cpp
change the if conditions
void NexObject::getObjGlobalPageName(String &gName)
{
if(_page)
{
gName += _page->getObjName();
gName += ".";
}
gName +=_name;
}
to
void NexObject::getObjGlobalPageName(String &gName)
{
if(_page==nullptr)
{
gName += _page->getObjName();
gName += ".";
}
gName +=_name;
}
Hope this helps
Metadata
Metadata
Assignees
Labels
No labels