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

ICM42670 Constantly prints "Fetch from reg" error to log #83767

Open
aburt2 opened this issue Jan 10, 2025 · 1 comment
Open

ICM42670 Constantly prints "Fetch from reg" error to log #83767

aburt2 opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug

Comments

@aburt2
Copy link

aburt2 commented Jan 10, 2025

Describe the bug

ICM42670 constantly prints "Fetch from reg" error to log.

static int icm42670_fetch_from_registers(const struct device *dev, enum sensor_channel chan)
{
struct icm42670_data *data = dev->data;
int res = 0;
uint8_t int_status;
LOG_ERR("Fetch from reg");
icm42670_lock(dev);

Is this supposed to be the intended behaviour?

To Reproduce

  • Add icm42670p to your project
  • call sample_fetch in your application
  • Compile without using CONFIG_ICM42670_TRIGGER

Expected behavior

Only print error if an error has actually occured,

Impact

Slows down application due to multiple frequent logging calls

Logs and console output

Environment (please complete the following information):

  • OS: Windows
  • Toolchain: ZEPHYR SDK
  • Commit SHA or Version used: HEAD of main

Additional context

@aburt2 aburt2 added the bug The issue is a bug, or the PR is fixing a bug label Jan 10, 2025
Copy link

Hi @aburt2! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

4 participants