Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AsyncSerial AsyncSerial AsyncSerial AsyncSerialh
Revision 3:137a7245f990, committed 2017-06-22
- Comitter:
- babylonica
- Date:
- Thu Jun 22 12:21:25 2017 +0000
- Parent:
- 2:fa27aa055777
- Commit message:
- Warning Fixed.
Changed in this revision
| FIFO.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fa27aa055777 -r 137a7245f990 FIFO.cpp
--- a/FIFO.cpp Sat Jun 17 09:13:12 2017 +0000
+++ b/FIFO.cpp Thu Jun 22 12:21:25 2017 +0000
@@ -65,7 +65,7 @@
DISABLE_INTERRUPTS;
if ( count <= 0 ){
- RESTORE_INTERUUPTS;
+ RESTORE_INTERUUPTS;
return 0;
}
@@ -89,7 +89,7 @@
if ( count <= 0 ){ //When the buffer is empty
RESTORE_INTERUUPTS;
- return -1;
+ return 0;
}
getdata = buffer[getindex];