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

FIXED unable to change picture #112

Open
RDickens opened this issue Sep 5, 2023 · 0 comments
Open

FIXED unable to change picture #112

RDickens opened this issue Sep 5, 2023 · 0 comments

Comments

@RDickens
Copy link

RDickens commented Sep 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant