Open GoogleCodeExporter opened 9 years ago
The wrong string comparisons happen for example here:
//stop bits hashmap
for(String str: stop_bits_list){
if(str == "1"){
mStopBitsHashMap.put(str, FTDI_Constants.STOP_BITS_1);
}else if(str == "1.5"){
mStopBitsHashMap.put(str, FTDI_Constants.STOP_BITS_15);
}else if(str == "2"){
mStopBitsHashMap.put(str, FTDI_Constants.STOP_BITS_2);
}
}
Original comment by gerth...@gmail.com
on 13 May 2012 at 12:51
[deleted comment]
Indeed, changing all '==' to equals() solves this problem.
Original comment by giorgos...@gmail.com
on 11 Jun 2012 at 4:03
Original issue reported on code.google.com by
gerth...@gmail.com
on 13 May 2012 at 12:50