Skip to content

Conversation

seov-nordic
Copy link
Member

Change the npm13xx_charger fetch function to first trigger a sample and then block until the result is available.

Change the npm13xx_charger fetch function to first trigger a sample
and then block until the result is available.

Signed-off-by: Sergei Ovchinnikov <[email protected]>
@seov-nordic seov-nordic force-pushed the npm13xx-charger-improve-measurement-fetching branch from 72ae685 to 7ea2956 Compare August 21, 2025 08:26
Copy link

Copy link
Contributor

@nordic-auko nordic-auko left a comment

Choose a reason for hiding this comment

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

One nitpick


return i2c_write_dt(&config->i2c, buff, sizeof(buff));
return i2c_transfer_dt(&config->i2c, msg, 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick:

Suggested change
return i2c_transfer_dt(&config->i2c, msg, 2);
return i2c_transfer_dt(&config->i2c, msg, ARRAY_SIZE(msg));

@seov-nordic
Copy link
Member Author

@anangl or @masz-nordic, could you please take a look?

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

Successfully merging this pull request may close these issues.

5 participants