state/calibration is now saved to and read from flash ram