Modserial

Dependencies:   MODSERIAL

Fork of MODSERIAL by Erik -

Files at this revision

API Documentation at this revision

Comitter:
BlazeX
Date:
Thu Dec 11 05:25:58 2014 +0000
Parent:
35:180e968a751e
Child:
37:31db07ebcb68
Commit message:
downSizeBuffer >= <= fix

Changed in this revision

RESIZE.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RESIZE.cpp	Mon May 12 13:20:20 2014 +0000
+++ b/RESIZE.cpp	Thu Dec 11 05:25:58 2014 +0000
@@ -55,7 +55,7 @@
 int 
 MODSERIAL::downSizeBuffer(int size, IrqType type, bool memory_check)
 {
-    if (size >= buffer_count[type]) {
+    if (size <= buffer_count[type]) {
         return BufferOversize;
     }