Skip to content

Logging incorrect for i2c i2cProcQueue() function #1370

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

Closed
echoGee opened this issue Apr 30, 2018 · 3 comments
Closed

Logging incorrect for i2c i2cProcQueue() function #1370

echoGee opened this issue Apr 30, 2018 · 3 comments

Comments

@echoGee
Copy link

echoGee commented Apr 30, 2018

Hardware:

Board: ESP32 Dev Module?
Core Installation/update date: ?11/jul/2017?
IDE name: Platform.io
Flash Frequency: 80Mhz
Upload Speed: ?

Description:

Logging for I2C incorrect. tBefore and tAfter are defined at same location
In file esp32-hal-i2c.c: i2cProcQueue()

Sketch:

   i2c->dev->ctr.trans_start=1; // go for it

    uint32_t eBits = xEventGroupWaitBits(i2c->i2c_event,EVENT_DONE,pdFALSE,pdTRUE,ticksTimeOut);

    //log_e("after WaitBits=%x @tick=%d",eBits,xTaskGetTickCount());

#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
    portTickType tBefore=xTaskGetTickCount();
    portTickType tAfter=xTaskGetTickCount();
#endif

should be

   i2c->dev->ctr.trans_start=1; // go for it

#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
    portTickType tBefore=xTaskGetTickCount();
#endif

    uint32_t eBits = xEventGroupWaitBits(i2c->i2c_event,EVENT_DONE,pdFALSE,pdTRUE,ticksTimeOut);

    //log_e("after WaitBits=%x @tick=%d",eBits,xTaskGetTickCount());

#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
    portTickType tAfter=xTaskGetTickCount();
#endif

Debug Messages:

See #1352 (comment) for more details

@stickbreaker
Copy link
Contributor

@echoGee You can close this now, me-no-dev pulled.

Chuck.

@echoGee
Copy link
Author

echoGee commented Jul 2, 2018

@stickbreaker Feel free to close it. Could you add the commit for the pull here for reference ?

@stickbreaker
Copy link
Contributor

@echoGee the pr happened in the strickbreak-i2c branch, me-no-dev cleaned up(deleted) all development branches when he merged stickbreaker-i2c. When he was preparing for the RC1.

I cannot close this issue, I do not have edit writes for this repo. You have the right to close it because you opened it.

Chuck.

@echoGee echoGee closed this as completed Jul 3, 2018
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