Optimized RC oscillator calibration

saves 90 bytes, improves robustness, transparent implementation.