init_config();
SG_LOG( SG_IO, SG_ALERT,
- "Initializing ATC hardware, please wait ..." );
+ "Initializing ATC input hardware, please wait ..." );
- snprintf( analog_in_file, 256, "/proc/atc610x/board%d/analog_in", board );
- snprintf( radios_file, 256, "/proc/atc610x/board%d/radios", board );
- snprintf( switches_file, 256, "/proc/atc610x/board%d/switches", board );
+ snprintf( analog_in_file, 256,
+ "/proc/atcflightsim/board%d/analog_in", board );
+ snprintf( radios_file, 256,
+ "/proc/atcflightsim/board%d/radios", board );
+ snprintf( switches_file, 256,
+ "/proc/atcflightsim/board%d/switches", board );
#if defined( unix ) || defined( __CYGWIN__ )
/////////////////////////////////////////////////////////////////////
SG_LOG( SG_IO, SG_ALERT,
- "Done initializing ATC hardware." );
+ "Done initializing ATC input hardware." );
is_open = true;
#if defined( unix ) || defined( __CYGWIN__ )
+ if ( !is_open ) {
+ return true;
+ }
+
int result;
result = ::close( analog_in_fd );