Skip to content

Conversation

@barsok
Copy link
Contributor

@barsok barsok commented May 16, 2024

Skip cases which would result in division by 0 in clock calculation
Fixes #70316

anangl
anangl previously approved these changes May 16, 2024
anangl
anangl previously approved these changes May 16, 2024
masz-nordic
masz-nordic previously approved these changes May 17, 2024
kl-cruz
kl-cruz previously approved these changes May 21, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this constant value is only used locally, I'd rather use:

Suggested change
#define MCKCONST 1048576
enum { MCKCONST = 1048576 };

#define looks a bit weird with such indentation (which is also off by one currently).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@barsok do you want to follow the suggestion above?

@fabiobaltieri fabiobaltieri added this to the v3.7.0 milestone Jun 21, 2024
Skip cases which would result in division by 0 in clock calculation

Signed-off-by: Bartosz Sokolski <[email protected]>
@barsok barsok dismissed stale reviews from kl-cruz and masz-nordic via 81f72a8 June 25, 2024 11:57
@barsok barsok force-pushed the bsokol-NCSIDB-1235 branch from 114cb85 to 81f72a8 Compare June 25, 2024 11:57
@nashif nashif merged commit 7219709 into zephyrproject-rtos:main Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NRFX I2S Driver Bug -- division by zero

8 participants