Skip to content

Commit 3d07fc2

Browse files
committed
Bugfixes
1 parent 37f933a commit 3d07fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sixtube_lm/sixtube_lm.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ void switchAlarm(char dir){
778778
}
779779
}
780780

781-
void getHz(byte note){
781+
word getHz(byte note){
782782
//Given a piano key note, return frequency
783783
//TODO (note-basenote)/12 resolves to a float...
784784
return 440*(2^((note-49)/12));
@@ -968,7 +968,7 @@ void cycleDisplay(){
968968
if(setStartLast>0) setStartLast=0;
969969
}
970970

971-
if(displayDim !== 0) { //if other display code says to shut off entirely, skip this part
971+
if(displayDim>0) { //if other display code says to shut off entirely, skip this part
972972
//Anode channel 0: tubes #2 (min x10) and #5 (sec x1)
973973
setCathodes(displayLast[2],displayLast[5]); //Via d2b decoder chip, set cathodes to old digits
974974
digitalWrite(anodes[0], HIGH); //Turn on tubes

0 commit comments

Comments
 (0)