#NEWLINE# def ssh_upload( self , possible_firmwares , ip ) : #NEWLINE# #INDENT# 'Uploading the firmware to Arduino' #NEWLINE# firmware = _firmware_to_upload ( self . bii , possible_firmwares ) #NEWLINE# self . bii . user_io . out . writeln ( 'Uploading...' ) #NEWLINE# if ( not OSInfo . is_win ( ) ) : #NEWLINE# #INDENT# scp_command = ( 'scp %s.hex root@%s:/tmp/' % ( firmware , ip ) ) #NEWLINE# ssh_command = ( 'ssh root@%s /usr/bin/run-avrdude /tmp/%s.hex -q -q' % ( ip , firmware ) ) #NEWLINE# bii_paths = self . bii . bii_paths #NEWLINE# self . _execute_command ( scp_command , bii_paths . bin ) #NEWLINE# self . _execute_command ( ssh_command )