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

Comments in structures prevents structure to parse. #5

Open
Hadatko opened this issue Dec 19, 2019 · 2 comments
Open

Comments in structures prevents structure to parse. #5

Hadatko opened this issue Dec 19, 2019 · 2 comments

Comments

@Hadatko
Copy link

Hadatko commented Dec 19, 2019

Hi,
this structure isn't parsed and it is skipped (when most of comments are removed, structure is parsed properly):

struct acSensorArrayData
{
    //Accelerometer
    //{
    uint16_t accelerationX;

    uint16_t accelerationY;

    uint16_t accelerationZ;
    //}

    //Proximity
    //{
    uint8_t proxyEvents;

    uint8_t touchByte;

    uint8_t touchHalfByte;
    //}

    //BME 680
    //{
    uint16_t gas;

    uint16_t humidity;

    uint16_t temperature;

    uint16_t pressure;
    //}

    //Luxmeter
    //{
    uint32_t lux;
    //}

    //Battery
    //{
    uint16_t chargerState;

    uint8_t chargeStatus;
    //}

    //GPIO expander
    //{
    uint8_t gpioExpInput;
    //}
};
@Schamper
Copy link
Member

Schamper commented Dec 19, 2019

What would be your expected parsed result? I assume the following:

struct acSensorArrayData
{
    uint16_t accelerationX;
    uint16_t accelerationY;
    uint16_t accelerationZ;
    uint8_t proxyEvents;
    uint8_t touchByte;
    uint8_t touchHalfByte;
    uint16_t gas;
    uint16_t humidity;
    uint16_t temperature;
    uint16_t pressure;
    uint32_t lux;
    uint16_t chargerState;
    uint8_t chargeStatus;
    uint8_t gpioExpInput;
};

@Hadatko
Copy link
Author

Hadatko commented Dec 19, 2019

Yes. I found out that issue is this //} comment. I created pull request for you.

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

2 participants