Skip to content

Commit

Permalink
Fixed inverted boolean in comment (#309)
Browse files Browse the repository at this point in the history
* Fixed inverted boolean in comment

Just a code comment that was a bit back to front.
MPUs require USE_6_AXIS to be false, not true

* Update src/assets/js/configuring-defines.js

Co-authored-by: Meia <[email protected]>

---------

Co-authored-by: Meia <[email protected]>
  • Loading branch information
NotLeoKnight and kounocom authored Nov 20, 2024
1 parent d561ace commit 3aa2052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/js/configuring-defines.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
ICM20948_warning: {
name: '',
renderer: types.HTML,
html: '<strong style="color: orange;">WARNING: To enable the magnetometer you need to go into src/debug.h and change "#define USE_6_AXIS false" to true. Using the magnetometer necessarily requires that you have a stable magnetic environment.</strong>',
html: '<strong style="color: orange;">WARNING: To enable the magnetometer you need to go into src/debug.h and change "#define USE_6_AXIS true" to false. Using the magnetometer necessarily requires that you have a stable magnetic environment.</strong>',
hidden: (vals) => !(vals.imu == 'IMU_ICM20948' || vals.imu_2 == 'IMU_ICM20948'),
action: () => { return {}; }
},
Expand Down

0 comments on commit 3aa2052

Please sign in to comment.