Compare commits

..

1 commit

Author SHA1 Message Date
5affd3d2b9 stash 2021-09-07 14:58:56 +02:00
3 changed files with 18 additions and 5 deletions

View file

@ -69,3 +69,20 @@ In the project root run:
nix-shell --option sandbox false
make firmware -j$(nproc)
```
>>> import htmlmin
>>> input_html = '''
<body style="background-color: tomato;">
<h1> htmlmin rocks</h1>
<pre>
and rolls
</pre>
</body>'''
>>> htmlmin.minify(input_html)
u' <body style="background-color: tomato;"> <h1> htmlmin rocks</h1> <pre>\n and rolls\n </pre> </body>'
>>> print htmlmin.minify(input_html)
<body style="background-color: tomato;"> <h1> htmlmin rocks</h1> <pre>
and rolls
</pre> </body>

View file

@ -41,10 +41,6 @@ while($file = <FILES>) {
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");
}

View file

@ -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;