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

xsns_33_qmc5883l.ino check for overflow and scale reading #20643

Closed
wants to merge 8 commits into from

Conversation

fb-pilot
Copy link
Contributor

@fb-pilot fb-pilot commented Feb 2, 2024

Description:

xsns_33_qmc5883l.ino Add cofigure some chip-parameters, check for overflow and scale the reading to tesla
Related issue (if applicable): fixes #

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.6
  • The code change is tested and works with Tasmota core ESP32 V.2.0.14
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

Add #defines for xsns_33_qmc5883l.ino
Add cofigure some chip-parameters, check for overflow  and scale the reading to tesla
@fb-pilot
Copy link
Contributor Author

fb-pilot commented Feb 2, 2024

Hi all
that is my first pull request ....
I hope I have done all necessary things in the right way !?

@fb-pilot fb-pilot marked this pull request as ready for review February 2, 2024 12:24
@fb-pilot
Copy link
Contributor Author

fb-pilot commented Feb 8, 2024

now I checked all Tasmota cores :-))

@@ -470,7 +470,8 @@
#define USE_ENHANCED_GUI_WIFI_SCAN // Enable Wi-Fi scan output with BSSID (+0k5 code)
// #define USE_WEBSEND_RESPONSE // Enable command WebSend response message (+1k code)
// #define USE_WEBGETCONFIG // Enable restoring config from external webserver (+0k6)
// #define USE_GPIO_VIEWER // Enable GPIO Viewer to see realtime GPIO states (+6k code)
// #define USE_GPIO_VIEWER // Enable GPIO Viewer to see realtime GPIO states (+4k code)
// #define GV_BASE_URL "https://thelastoutpostworkshop.github.io/microcontroller_devkit/gpio_viewer/assets/"
Copy link
Owner

Choose a reason for hiding this comment

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

Pls rebase your PR as this line has been removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done - I hope thats what you need :-))

Copy link
Owner

Choose a reason for hiding this comment

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

Still someting wrong. Line 475 should be removed as it is no longer present in the release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am confused ...
The "my_user_config.h" in my fork is only extended with some #define USE_QMC58...
I see the identical #define USE_GPIO_VIEWER in both "my_user_config.h" (in my fork and in the original development in two lines :
474 ... // #define USE_GPIO_VIEWER // Enable GPIO Viewer to see realtime GPIO states (+4k code)
and
1105 ... #define USE_GPIO_VIEWER // Enable GPIO Viewer to see realtime GPIO states (+5k6 code)
line 475 is ...
475 ... // #define GV_SAMPLING_INTERVAL 100 // [GvSampling] milliseconds - Use Tasmota Scheduler (100) or Ticker (20..99,101..1000)
??? what can I do ???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I rebased my PR on dev[13.4.0.1] now
I hope it works now

Copy link
Owner

Choose a reason for hiding this comment

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

No it doesn't. You should be able to easily see that it fails on line 475. That line is not present in dev or released branch.

So keep trying until you see for yourself that line 475 is gone.

Copy link
Owner

Choose a reason for hiding this comment

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

I'll fix it.

@fb-pilot fb-pilot marked this pull request as draft February 16, 2024 18:31
@fb-pilot fb-pilot marked this pull request as ready for review February 16, 2024 18:32
@arendst
Copy link
Owner

arendst commented Feb 18, 2024

Thx. It's merged now.

@arendst arendst closed this Feb 18, 2024
@fb-pilot
Copy link
Contributor Author

Thx 👍 ... I still dont check what the problem was !? :-((

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.

2 participants