diff --git a/README.md b/README.md index fd4f071..6ff897e 100644 --- a/README.md +++ b/README.md @@ -69,20 +69,3 @@ In the project root run: nix-shell --option sandbox false make firmware -j$(nproc) ``` - - - ->>> import htmlmin ->>> input_html = ''' - -

htmlmin rocks

-
-      and rolls
-    
- ''' ->>> htmlmin.minify(input_html) -u'

htmlmin rocks

\n        and rolls\n      
' ->>> print htmlmin.minify(input_html) -

htmlmin rocks

-        and rolls
-      
diff --git a/firmware/fsdata/makefsdata b/firmware/fsdata/makefsdata index f3c440d..5361370 100755 --- a/firmware/fsdata/makefsdata +++ b/firmware/fsdata/makefsdata @@ -41,6 +41,10 @@ while($file = ) { print(HEADER "Content-type: image/jpeg\r\n"); } elsif($file =~ /\.bmp$/) { print(HEADER "Content-type: image/bmp\r\n\r\n"); + } elsif($file =~ /\.class$/) { + print(HEADER "Content-type: application/octet-stream\r\n"); + } elsif($file =~ /\.ram$/) { + print(HEADER "Content-type: audio/x-pn-realaudio\r\n"); } else { print(HEADER "Content-type: text/plain\r\n"); } diff --git a/firmware/web.cpp b/firmware/web.cpp index 8e2e0a7..6176a43 100644 --- a/firmware/web.cpp +++ b/firmware/web.cpp @@ -239,7 +239,7 @@ void websocket_cb(struct tcp_pcb *pcb, char *data, u16_t data_len, cmd = 'G'; break; case 'F': - togl = !togl; + togl = ~togl; signal_led(togl); { auto *f = (fw_frame *) data;