disconnect
Dependencies: Puck lz mbed-src seeedstudio-epaper
Fork of display-puck by
Diff: main.cpp
- Revision:
- 8:30de292d57fd
- Parent:
- 5:5491fb58107e
- Child:
- 9:f90c326604c3
--- a/main.cpp Fri Aug 01 07:50:39 2014 +0000 +++ b/main.cpp Fri Aug 01 09:18:04 2014 +0000 @@ -95,6 +95,7 @@ break; case COMMAND_IMAGE_UPPER: + puck->disconnect(); LOG_INFO("Writing image to top half of display.\n"); reverseBufferSegment(receiveIndex, BUFFER_SIZE); LOG_DEBUG("LZ_Uncompress(in: 0x%x, out 0x%x, insize: %i)\n", buffer + receiveIndex, buffer, BUFFER_SIZE - receiveIndex); @@ -107,6 +108,7 @@ break; case COMMAND_IMAGE_LOWER: + puck->disconnect(); LOG_INFO("Writing image to bottom half of display.\n"); reverseBufferSegment(receiveIndex, BUFFER_SIZE); LZ_Uncompress(buffer + receiveIndex, buffer, BUFFER_SIZE - receiveIndex);