Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 220 → Rev 221

/branches/ligi_j2me/src/MKCommunicator.java
35,6 → 35,7
public MKLCD LCD;
public MKVersion version;
public MKDebugData debug_data;
public MKWatchDog watchdog;
 
public long connection_start_time=-1;
77,7 → 78,12
connection_start_time=System.currentTimeMillis();
connected=true; // if we get here everything seems to be OK
get_version();
lcd_data_count=0;
debug_data_count=0;
version_data_count=0;
 
LCD= new MKLCD(this);
watchdog=new MKWatchDog(this);
}
catch (Exception ex)
{
203,11 → 209,6
case '3':
LCD.handle_lcd_data(Decode64(data,3,20),data[2]-(int)'0');
lcd_data_count++;
// decoded_data=
 
// if ((data[2]-(int)'0')!=3)
// get_LCD();
break;
 
default:
225,9 → 226,9
 
public boolean force_disconnect=false;
 
public void close_connections()
public void close_connections(boolean force)
{
force_disconnect=true;
force_disconnect=force;
try{ reader.close(); }
catch (Exception inner_ex) { }
 
274,7 → 275,7
{
msg="Problem reading from MK";
// close the connection
close_connections();
close_connections(false);
 
 
}