From 6773c53fbaaf02d83250d7028253ef45fba16f5c Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Mon, 6 Jul 2020 22:58:16 +0200 Subject: [PATCH] fix printer resource priority --- screenless/bureau/publications/publications.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 9c867bc..8953576 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -146,8 +146,10 @@ class Publications(Bureau): if period["day"] != current: prn.text(period["day"]) day_count += 1 - self.print_small_image(period["png"]) prn.text(" - " + period["period"] + "\r\n") + prn.close() + self.print_small_image(period["png"]) + prn = self._get_small_printer() prn.text(period["mintemp"] + " - " + period["maxtemp"] + "°") if day_count > 3: break