mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
core: minor documentation fix
This commit is contained in:
parent
04c34fb4b0
commit
be29f20159
@ -48,9 +48,8 @@ and no header. This can be achieved with ZLIB library by using the following:
|
||||
|
||||
```python
|
||||
import zlib
|
||||
z = zlib.compressobj(level=9, wbits=10)
|
||||
z = zlib.compressobj(level=9, wbits=-10)
|
||||
zdata = z.compress(pixeldata) + z.flush()
|
||||
zdata = zdata[2:-4] # strip header and checksum
|
||||
```
|
||||
|
||||
## Tools
|
||||
|
Loading…
Reference in New Issue
Block a user