You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "benmccrea (via GitHub)" <gi...@apache.org> on 2025/03/19 16:50:07 UTC
[PR] Fix for lis2dh12 shell initialization [mynewt-core]
benmccrea opened a new pull request, #3389:
URL: https://github.com/apache/mynewt-core/pull/3389
Replace commented out `lis2dh12_shell_init()` with `LIS2DH12_CLI` syscfg conditional.
In `lis2dh12_shell.c`, remove `SENSOR_CLI` conditional so only `LIS2DH12_CLI` is required to enable the shell. `SENSOR_CLI` now enables output in float format for `lis2dh12 r <num_readings>`, since a helper function in the sensor package is used for float conversion. When `SENSOR_CLI` is 0 the output will be in integers with 3 implied decimal places.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix for lis2dh12 shell initialization [mynewt-core]
Posted by "benmccrea (via GitHub)" <gi...@apache.org>.
benmccrea commented on PR #3389:
URL: https://github.com/apache/mynewt-core/pull/3389#issuecomment-2741265919
@vrahane Fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix for lis2dh12 shell initialization [mynewt-core]
Posted by "benmccrea (via GitHub)" <gi...@apache.org>.
benmccrea merged PR #3389:
URL: https://github.com/apache/mynewt-core/pull/3389
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix for lis2dh12 shell initialization [mynewt-core]
Posted by "vrahane (via GitHub)" <gi...@apache.org>.
vrahane commented on PR #3389:
URL: https://github.com/apache/mynewt-core/pull/3389#issuecomment-2738557369
@benmccrea There is coding style failure on the CI:
```
[FAIL] hw/drivers/sensors/lis2dh12/src/lis2dh12_shell.c
@@ -175,3 +174,3 @@ lis2dh12_shell_cmd_read(int argc, char *
- console_printf("x:%ld ", (int32_t) (fx*1000.0f));
- console_printf("y:%ld ", (int32_t) (fy*[10](https://github.com/apache/mynewt-core/actions/runs/13952149693/job/39054196477?pr=3389#step:4:11)00.0f));
- console_printf("z:%ld\n", (int32_t) (fz*1000.0f));
+ console_printf("x:%ld ", (int32_t) (fx * 1000.0f));
+ console_printf("y:%ld ", (int32_t) (fy * 1000.0f));
+ console_printf("z:%ld\n", (int32_t) (fz * 1000.0f));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org