adafruit / Adafruit_CircuitPlayground

library for Circuit Playground board
171 stars 77 forks source link

soundPressureLevel() intermittently returns 'inf' at low levels on AVR #30

Closed PaintYourDragon closed 6 years ago

PaintYourDragon commented 6 years ago

In the dm-mic-spl fork, running the soundPressureLevel example. Open serial monitor (not the plotter) and (when quiet) you'll see some "inf"s mixed in with the numeric output. Only happens on AVR; ARM seems unaffected. @dhalbert

ladyada commented 6 years ago

oops thats for @deanm1278 :)

PaintYourDragon commented 6 years ago

Wrong button. Sorry! :)

deanm1278 commented 6 years ago

oh oops I had fixed this yesterday but must have messed up with git. It should have been doing it with both AVR and ARM, just ARM is a bit lower of a floor. should be fixed here: https://github.com/adafruit/Adafruit_CircuitPlayground/commit/69e723712ff05f2237f4e0e3e5a212f28e03c163

It's a bit too loud to test right now at the factory but I'll plug it in when I get home.

ladyada commented 6 years ago

i think this was resolved so closin!