IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7920


Ignore:
Timestamp:
Jul 17, 2006, 2:56:49 PM (20 years ago)
Author:
Paul Price
Message:

Only attempt to read recipes from site and camera if we know the site and camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r7906 r7920  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-07-14 20:12:20 $
     5 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-07-18 00:56:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    714714
    715715    // Read the recipe file names from the site configuration and camera configuration
    716     if (!(config->recipesRead & P_PM_RECIPE_SOURCE_SITE)) {
     716    if (config->site && !(config->recipesRead & P_PM_RECIPE_SOURCE_SITE)) {
    717717        if(!loadRecipes(config, config->site, P_PM_RECIPE_SOURCE_SITE, "site configuration")) {
    718718            psError(PS_ERR_IO, false, "Failed to read recipes from site config");
     
    724724        }
    725725    }
    726     if (!(config->recipesRead & P_PM_RECIPE_SOURCE_CAMERA)) {
     726    if (config->camera && !(config->recipesRead & P_PM_RECIPE_SOURCE_CAMERA)) {
    727727        if (!loadRecipes(config, config->camera, P_PM_RECIPE_SOURCE_CAMERA, "camera configuration")) {
    728728            psError(PS_ERR_IO, false, "Failed to read recipes from camera config");
Note: See TracChangeset for help on using the changeset viewer.