             byte firstHistoryBlock = firstHistoryByte / 8; // integer division without remainder
             byte lastHistoryBlock = lastHistoryByte / 8;   // integer division without remainder
 
-            #ifdef DEBUG
+            #ifdef FRAM_DEBUG
             Serial.printf("firstHistory:       0x%x\n\r", firstHistory);
             Serial.printf("firstHistoryByte:   0x%x\n\r", firstHistoryByte);
             Serial.printf("lastHistoryByte:    0x%x\n\r", lastHistoryByte);

        if ( minutesSinceLastReading > 31*15 )
          historiesSinceLastReading = 32;

        #ifdef DEBUG
        Serial.printf("\r\nhistoryDelta:              0x%x\n\r", historyDelta);
        Serial.printf("historiesSinceLastReading: 0x%x\n\r", historiesSinceLastReading);
        #endif

  valueSetup.marker = 'T';
  rc = flashWriteBlock(p, &valueSetup, sizeof(valueSetup));
  if (rc == 0)
    Serial.print(" -> Success");
  else if (rc == 1)
    Serial.print(" -> Error - the flash page is reserved");
  else if (rc == 2)
    Serial.print(" -> Error - the flash page is used by the sketch");
}

void displayData()
