Skip to content

Fixed broken OOR handling & Division by zero#9

Merged
1 commit merged into
letscontrolit:masterfrom
racquemis:racquemis-patch-1
Nov 15, 2015
Merged

Fixed broken OOR handling & Division by zero#9
1 commit merged into
letscontrolit:masterfrom
racquemis:racquemis-patch-1

Conversation

@racquemis
Copy link
Copy Markdown
Contributor

Fixed broken out of range handling. ESP8266 would reset itself every minute under extreme low light conditions due to division by zero.
New method also correct the previously fixed range of 4900. Range is actually dependent on the chosen integration time.

Fixed broken out of range handling. ESP2862 would reset itself every minute under extreme low light conditions due to division by zero.
New method also correct the previously fixed range of 4900. Range is actually dependent on the chosen integration time.
ghost pushed a commit that referenced this pull request Nov 15, 2015
Fixed broken OOR handling &  Division by zero
@ghost ghost merged commit 2130c98 into letscontrolit:master Nov 15, 2015
TD-er pushed a commit that referenced this pull request May 3, 2018
TD-er pushed a commit that referenced this pull request Feb 14, 2019
TD-er pushed a commit that referenced this pull request May 10, 2021
TD-er added a commit that referenced this pull request Sep 26, 2024
if we wait for data from SMTP - do not flush received data
Brommander added a commit to Brommander/ESPEasy that referenced this pull request May 13, 2026
letscontrolit#1  Translate all comments to English
letscontrolit#2  Use const reference and member initializer list in constructors
letscontrolit#3  Explicit {} initialization for global arrays (clarity)
letscontrolit#4  Explicit {} initialization for global int variables (clarity)
letscontrolit#5  Use auto& dev and DEVICE_TYPE_SERIAL in PLUGIN_DEVICE_ADD
letscontrolit#6  Use const variables for serial port/pins from CONFIG
letscontrolit#7  Add bounds checks before array index access
letscontrolit#8  Replace millis() arithmetic with timePassedSince()
letscontrolit#9  Add bounds check at top of D0 read loop
letscontrolit#11 Replace C-style casts with static_cast<>
letscontrolit#12 Pre-calculate scale factor (powf) in state 32, not per value
letscontrolit#13 Declare loop variable outside scope for use in debug log
letscontrolit#14 Remove hardcoded serial pins — port now configured via UI
This pull request was closed.
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