Skip to content

Commit

Permalink
Merge pull request #3234 from BsAtHome/fix_classicladder-proto-call
Browse files Browse the repository at this point in the history
Function calls must adhere to their prototypes
  • Loading branch information
andypugh authored Dec 21, 2024
2 parents 058f77c + e4d71e4 commit c625bc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hal/classicladder/classicladder_gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void GetTheSizesForRung( void )

// size of the page or block changed ?
if ( InfosGene->PageHeight!=PageHeightBak || InfosGene->BlockHeight!=BlockHeightBak )
UpdateVScrollBar( TRUE/*AutoSelectCurrentRung*/ );
UpdateVScrollBar( /*AutoSelectCurrentRung*/ );
PageHeightBak = InfosGene->PageHeight;
BlockHeightBak = InfosGene->BlockHeight;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hal/classicladder/manager_gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void RefreshSectionSelected( )
EditorButtonsAccordingSectionType( );
//XXX search functionality, not implemented in LinuxCNC.
//EnableDisableMenusAccordingSectionType( );
UpdateVScrollBar( TRUE/*AutoSelectCurrentRung*/ );
UpdateVScrollBar( /*AutoSelectCurrentRung*/ );
}

void ManagerDisplaySections( char ForgetSectionSelected )
Expand Down
2 changes: 1 addition & 1 deletion src/hal/classicladder/socket_modbus_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void ConfigSerialModbusMaster( void )
int Error = 0;
if ( ModbusConfig.ModbusSerialPortNameUsed[ 0 ]!='\0' )
{
if ( !SerialOpen( ModbusConfig.ModbusSerialPortNameUsed, ModbusConfig.ModbusSerialSpeed ) )
if ( !SerialOpen( /*ModbusConfig.ModbusSerialPortNameUsed, ModbusConfig.ModbusSerialSpeed*/ ) )
{
Error = -1;
printf(_("INFO CLASSICLADDER---I/O Modbus master Data bits %i Stop bits %i Parity %i\n"),ModbusConfig.ModbusSerialDataBits,ModbusConfig.ModbusSerialStopBits,ModbusConfig.ModbusSerialParity);
Expand Down

0 comments on commit c625bc2

Please sign in to comment.