Changeset 284 in xtideuniversalbios for trunk/Serial_Server
- Timestamp:
- Feb 29, 2012, 6:13:11 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Serial_Server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/library/Image.cpp
r277 r284 192 192 193 193 #define ATA_strModel 27 194 #define ATA_strModel_Length 40 194 #define ATA_strModel_Length 40 // Maximum allowable length of the string according to the ATA spec 195 #define XTIDEBIOS_strModel_Length 30 // Maximum length copied out of the ATA information by the BIOS 195 196 196 197 #define ATA_wCaps 49 … … 240 241 { 241 242 char formatBuff[ 128 ]; 243 char speedBuff[ 128 ]; 242 244 243 245 memset( &buff[0], 0, 514 ); … … 256 258 257 259 if( comPort ) 258 sprintf( formatBuff, "%.15s (COM%c/%s) ", shortFileName, comPort, baudRate->display );260 sprintf( speedBuff, " (COM%c/%s)", comPort, baudRate->display ); 259 261 else 260 sprintf( formatBuff, "%.25s (%s baud) ", shortFileName, baudRate->display ); 262 sprintf( speedBuff, " (%s baud)", shortFileName, baudRate->display ); 263 264 sprintf( formatBuff, "%.*s%s ", XTIDEBIOS_strModel_Length - strlen(speedBuff), shortFileName, speedBuff ); 261 265 } 262 266 else 263 sprintf( formatBuff, "%. 30s ", shortFileName );267 sprintf( formatBuff, "%.*s ", XTIDEBIOS_strModel_Length, shortFileName ); 264 268 strncpy( (char *) &buff[ATA_strModel], formatBuff, ATA_strModel_Length ); 265 269 flipEndian( &buff[ATA_strModel], ATA_strModel_Length ); … … 302 306 buff[ ATA_wGenCfg ] = ATA_wGenCfg_FIXED; 303 307 } 308 -
trunk/Serial_Server/win32/Win32Serial.h
r258 r284 46 46 log( -1, "Could not ConnectNamedPipe" ); 47 47 48 if( baudRate->divisor > 3)48 if( baudRate->divisor > 0x80 ) 49 49 log( -1, "Cannot simulate baud rates with hardware multipliers" ); 50 50
Note:
See TracChangeset
for help on using the changeset viewer.