brunolalb / yawk

Yet Another Weather app for Kobo
34 stars 5 forks source link

fbink_cls expected 4 arguments, got 3 #3

Closed erzakiev closed 2 years ago

erzakiev commented 2 years ago

[FBInk] Detected a Kobo Mini (340 => Pixie @ Mark 4)
[FBInk] Enabled Kobo w/o Multi-Touch quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 200 dpi
[FBInk] Variable fb info: 600x800, 16bpp @ rotation: 3 (Counter Clockwise, 270 )
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 2179072 bytes & line length: 1216 bytes
[FBInk] Canonical rotation: 0 (Upright, 0 )
[FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8)
[FBInk] Line length: 37 cols, Page size: 50 rows
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
YAWK started!
Connected, with the IP address: 192.168.1.56
api:
city:
Updating at 05.05.22, 22h41 (update nr. 0)
Connected, with the IP address: 192.168.1.56
Getting current weather information . . .
Checking the API
Getting weather forecast information . . .
Creating image . . .
Drawing image
Traceback (most recent call last):
File "/mnt/onboard/.apps/yawk/yawk.py", line 312, in
main()
File "/mnt/onboard/.apps/yawk/yawk.py", line 303, in main
yawk.update()
File "/mnt/onboard/.apps/yawk/yawk.py", line 280, in update
fbink.fbink_cls(self.fbfd, self.fbink_cfg, rect)
TypeError: fbink_cls expected 4 arguments, got 3

erzakiev commented 2 years ago

I see that in the latest update of FBInk function fbink_cls gained a new argument:

fbink_cls gained a new argument, allowing you to bypass rotation quirks for the supplied coordinates. (e.g., you passed a rect that already went through said quirks). This obviously ties into the previous entry ;).

UPD: Added a dummy filler argument (0 or 1; doesn't matter), pull request #4