Changeset 48


Ignore:
Timestamp:
06/12/10 09:41:34 (14 years ago)
Author:
pinwc4
Message:

Fixed bug with new method for reopening COM port every time the program reads or writes. This will allow people to unplug the cable from the computer and plug it back in while the program is running.

Location:
trunk/desktop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/FlipSideICS.rbvcp

    r39 r48  
    11Type=Desktop 
    2 RBProjectVersion=2009.01 
     2RBProjectVersion=2010.01 
    33Class=FlipSideICS;FlipSideICS.rbbas;&h321864E;&h0;false 
    44Window=mainWindow;mainWindow.rbfrm;&hDF8AE23;&h0;false 
     
    1212MinorVersion=1 
    1313SubVersion=0 
    14 NonRelease=27 
     14NonRelease=28 
    1515Release=2 
    1616InfoVersion= 
     
    2121WinProductName= 
    2222AutoIncrementVersionInformation=True 
    23 BuildFlags=&h4010 
     23BuildFlags=&h4000 
    2424BuildLanguage=&h0 
    2525DebugLanguage=&h0 
     
    3535OSXBundleID= 
    3636DebuggerCommandLine= 
     37UseGDIPlus=False 
     38UseBuildsFolder=True 
  • trunk/desktop/ICSSerialPort.rbbas

    r42 r48  
    583583        #tag EndMethod 
    584584 
     585        #tag Method, Flags = &h21 
     586                Private Function reOpenPort() As Boolean 
     587                  dim status as boolean 
     588                  //Set the return code to false unless the port successfully opens 
     589                  status = false 
     590                   
     591                  //First close the port just in case 
     592                  me.Close 
     593                   
     594                  if not me.Open then 
     595                    //Could not open 
     596                    MsgBox "Error opening defined com port" 
     597                  else 
     598                    status = true 
     599                  end if 
     600                   
     601                  return status 
     602                End Function 
     603        #tag EndMethod 
     604 
    585605        #tag Method, Flags = &h0 
    586606                Sub resetCar() 
     
    752772                  end if 
    753773                End Sub 
    754         #tag EndMethod 
    755  
    756         #tag Method, Flags = &h21 
    757                 Private Function reOpenPort() As Boolean 
    758                   dim status as boolean 
    759                   //Set the return code to false unless the port successfully opens 
    760                   status = false 
    761                    
    762                   //First close the port just in case 
    763                   me.Close 
    764                    
    765                   if not me.Open then 
    766                     //Could not open 
    767                     MsgBox "Error opening defined com port" 
    768                   else 
    769                     status = true 
    770                   end if 
    771                 End Function 
    772774        #tag EndMethod 
    773775 
Note: See TracChangeset for help on using the changeset viewer.