lib/t7_calibration_operations.js
function getCurrentConfigs(bundle) {
    dbgHWTest('getCurrentConfigs', bundle.calibrationInfoValid);
    var defered = q.defer();

    bundle.device.sReadMany(bundle.infoToCache)
    .then(function(results) {
        // bundle.currentDeviceConfigs
        results.forEach(function(result) {
            bundle.currentDeviceConfigs[result.name] = result;
        });
        defered.resolve(bundle);
    }, function(err) {
        bundle.overallResult = false;
        bundle.overallMessage = 'Failed to read current device configs.';
        bundle.shortMessage = 'Failed';
        defered.resolve(bundle);
    });
    return defered.promise;
}
function getCurrentConfigs(bundle) {
    dbgHWTest('getCurrentConfigs', bundle.calibrationInfoValid);
    var defered = q.defer();

    bundle.device.sReadMany(bundle.infoToCache)
    .then(function(results) {
        // bundle.currentDeviceConfigs
        results.forEach(function(result) {
            bundle.currentDeviceConfigs[result.name] = result;
        });
        defered.resolve(bundle);
    }, function(err) {
        bundle.overallResult = false;
        bundle.overallMessage = 'Failed to read current device configs.';
        bundle.shortMessage = 'Failed';
        defered.resolve(bundle);
    });
    return defered.promise;
}
function getCurrentConfigs ( bundle ) { dbgHWTest ( 'getCurrentConfigs' , bundle . calibrationInfoValid ) ; var defered = q . defer ( ) ; bundle . device . sReadMany ( bundle . infoToCache ) . then ( function ( results ) { // bundle.currentDeviceConfigs results . forEach ( function ( result ) { bundle . currentDeviceConfigs [ result . name ] = result ; } ) ; defered . resolve ( bundle ) ; } , function ( err ) { bundle . overallResult = false ; bundle . overallMessage = 'Failed to read current device configs.' ; bundle . shortMessage = 'Failed' ; defered . resolve ( bundle ) ; } ) ; return defered . promise ; }
Read current device configuration & save it to the bundle.
Read current device configuration & save it to the bundle .