Skip to content

Conversation

@Brokezawa
Copy link

Problem:
ReadExternalRegister() calls AuxillaryRegisterTransaction() with 3 arguments, but the function expects 4 (read, slv_addr, reg_addr, value). This causes compilation errors when using magnetometer functionality.

Solution:
Pass 0 as the 4th argument for read operations. The value parameter is only used for write operations, so passing 0 for reads is safe.

Testing:

  • Verified compilation succeeds with this fix
  • Magnetometer initialization now works correctly
  • No impact on other ICM20948 functionality

Files Changed:

  • src/dev/icm20948.h (line 686): Added missing 4th argument (0)

Problem:
ReadExternalRegister() calls AuxillaryRegisterTransaction() with 3
arguments, but the function expects 4 (read, slv_addr, reg_addr, value).
This causes compilation errors when using magnetometer functionality.

Solution:
Pass 0 as the 4th argument for read operations. The value parameter is
only used for write operations, so passing 0 for reads is safe.

Testing:
- Verified compilation succeeds with this fix
- Magnetometer initialization now works correctly
- No impact on other ICM20948 functionality

Files Changed:
- src/dev/icm20948.h (line 686): Added missing 4th argument (0)
@github-actions
Copy link

Test Results

150 tests  ±0   150 ✅ ±0   0s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 690d076. ± Comparison against base commit f044cdc.

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

Successfully merging this pull request may close these issues.

1 participant