mbed I2C slave memory device emulator for use with Raspberry PI

Dependencies:   mbed

Revision:
6:446ce292ed7f
Parent:
5:b73ea174e997
--- 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: