diff --git a/README.md b/README.md index 6ff897e..fd4f071 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,20 @@ 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 5361370..f3c440d 100755 --- a/firmware/fsdata/makefsdata +++ b/firmware/fsdata/makefsdata @@ -41,10 +41,6 @@ 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 6176a43..8e2e0a7 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;