libftdi: (tomj) small improvement to the baudrate calculation code
authorThomas Jarosch <opensource@intra2net.com>
Tue, 7 Dec 2004 07:09:56 +0000 (07:09 +0000)
committerThomas Jarosch <opensource@intra2net.com>
Tue, 7 Dec 2004 07:09:56 +0000 (07:09 +0000)
ChangeLog
src/ftdi.c

index 5893ab5..47c801c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 New in 0.6
 ----------
+* Small improvement to the baudrate calculation code (Emil)
 * Error handling cleanup (Rogier Wolff)
 * Fix for kernel 2.6 USB subsystem. Detects kernel at runtime.
 
index 1ee86eb..abe0a5c 100644 (file)
@@ -269,7 +269,7 @@ static int ftdi_convert_baudrate(int baudrate, struct ftdi_context *ftdi,
         int baud_diff;
 
         // Round up to supported divisor value
-        if (try_divisor < 8) {
+        if (try_divisor <= 8) {
             // Round up to minimum supported divisor
             try_divisor = 8;
         } else if (ftdi->type != TYPE_AM && try_divisor < 12) {