   }
 }
 
+
 ////////////////////////////////////////////////////////////////////////////////
 // Code to save/restore in EEPROM.
 ////////////////////////////////////////////////////////////////////////////////
 
 // address for unsigned long 'frequency'
-static int AddressFreq = 0;
+const int AddressFreq = 0;
 
 // address for int 'selected digit'
-static int AddressSelDigit = AddressFreq + sizeof(AddressFreq);
+const int AddressSelDigit = AddressFreq + sizeof(AddressFreq);
 
 
 // save VFO state to EEPROM

  {
    // get next event and handle it
    byte event = pop_event();
    
    switch (event)
    {
      case vfo_RLeft:

void pinB_isr(void)
{
  byte reading = PIND & 0xC;

  if (reading == B00001100 && bFlag)
  { // check that we have both pins at detent (HIGH) and that we are expecting detent on
    // this pin's rising edge
    if (re_down)
    {
      push_event(vfo_DnRRight);
      Serial.println("pinB_isr pushed vfo_DnRRight to queue");
      re_rotation = true;
    }
    else
    {
      push_event(vfo_RRight);
      Serial.println("pinB_isr pushed vfo_RRight to queue");
    }
    bFlag = 0; //reset flags for the next turn
    aFlag = 0; //reset flags for the next turn
