Add minor formatting and clean up

This commit is contained in:
Maschell 2018-07-13 19:17:39 +02:00
parent 364f45854c
commit 327f1e08e5

View File

@ -60,6 +60,7 @@ void MJPEGStreamServer::sendJPEG(uint8_t * buffer, uint64_t size) {
char str[90];
snprintf(str, 90, "\r\n--boundary\r\nContent-Type: image/jpeg\r\nContent-Length: %llu \r\n\r\n", size);
mysendwait(clientfd, str, strlen(str));
mysendwait(clientfd, buffer, size);
@ -89,9 +90,6 @@ BOOL MJPEGStreamServer::whileLoop() {
}
OSSleepTicks(OSMicrosecondsToTicks(500));
}
if((uint32_t) message.message == 0x1234) {
continue;
}
if((uint32_t) message.message == 0xDEADBEEF) {
DEBUG_FUNCTION_LINE("We should exit\n");