Should iterate to NELEMENTS(dev->calibration) rather than "6".