lucysrausch / pcbtc

PCB based Dual Resonance Solid State Tesla Coil Design
https://hackaday.io/project/165112-pcbtc-gan-edition
207 stars 34 forks source link

Fix bug that the TS can not play back the same tone twice #12

Open Bauteiltoeter opened 2 years ago

Bauteiltoeter commented 2 years ago

Fixed the bug that the Tesla was unable to play the same note twices.

Steps to reproduce:

Fix: If the note was switched off with curTone = 0; the variable lastTone was not changed to 0. This will lead to the Timers not getting set with the correct frequency, curTone will equal lastTone.