mbed I2C slave memory device emulator for use with Raspberry PI

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sillevl
Date:
Tue Oct 21 09:51:17 2014 +0000
Parent:
5:b73ea174e997
Commit message:
solved bug with slave.stop() on clear and print

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b73ea174e997 -r 446ce292ed7f main.cpp
--- a/main.cpp	Tue Oct 14 14:54:32 2014 +0000
+++ b/main.cpp	Tue Oct 21 09:51:17 2014 +0000
@@ -93,10 +93,12 @@
                     case CLEAR:
                         pc.printf("Clearing the memory\r\n");    
                         memory.reset();
+                        slave.stop();
                         break;
                     
                     case PRINT:
                         memory.print();
+                        slave.stop();
                         break;
                     
                     default: