digistump / OakCore

Arduino/Platformio Core for Oak including Particle library
GNU Lesser General Public License v2.1
55 stars 28 forks source link

Fix endian inversion in SPI transfer16 and tone() crashes #74

Closed pfeerick closed 7 years ago

pfeerick commented 7 years ago

Ported from esp8266/Arduino@bda2125 as was raised on the Oak forum @ http://digistump.com/board/index.php/topic,2494.0.html.

pfeerick commented 7 years ago

And since I just realised that changes to my master got pulled into this commit, this also fixes #75, where calls to tone() with a frequency of 0 will cause the code to crash, and also removes the unnecessary (and bug causing in this instance) esp8266_pinToGpio[_pin] pin remapping.

Note to self... must keep patches for other repos in branches!

pfeerick commented 7 years ago

Closing as I have finally gotten around to re-organising my repo and branches