 }
 
 void loop() {
-  int freqCursorPosition = 4;
   
   // change freq dependent on rotary encoder spin direction
   if(spinDirection != 0) {

    lastClick = millis();
  }
  
  //blink the cursor to show selected frequency resolution
  if (millis() - lastBlink > 300) {
    freqCursorPosition = 8;
    for (long tempDelta = 10; tempDelta/freqDelta != 1; tempDelta *= 10) {
      freqCursorPosition--;
      if (freqCursorPosition == 2 || freqCursorPosition == 6) {  //hop the punctuation
        freqCursorPosition--;
      }
    }
    lcd.setCursor(freqCursorPosition,0);
    lcd.blink();
    
    /*
      lcd.noBlink();
    } else {
      lcd.blink();
    }
    
    
    */
    lastBlink = millis();
  }
  

  handleMemoryButtons();
  checkOutputLevel();
  wipeStaleStatus();

byte spinDirection = 0; // rotary encoder spun ccw (-1), cw (1), or no change (0)

long lastClick = 0;
long lastStatus = 0;

boolean statusDisplayed = false;
