From 88b771cbeed6b6c852cc463a392f412e6d231f81 Mon Sep 17 00:00:00 2001 From: Forrest Koran Date: Wed, 23 Aug 2017 02:47:28 +0000 Subject: [PATCH] Remove test code from papirus-draw papirus-draw now draws the image only once. Previously the image was drawn five times: once at each rotation, and finally at the requested rotation --- bin/papirus-draw | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/papirus-draw b/bin/papirus-draw index d7b224b..637ef59 100644 --- a/bin/papirus-draw +++ b/bin/papirus-draw @@ -35,14 +35,7 @@ def main(): papirus = Papirus(rotation = args.rotate) if args.filepath: print("Drawing on PaPiRus.......") - for i in range(0, 5): - print("Rotation = " + str(papirus.rotation)) - draw_image(papirus, args.filepath, args.type) - time.sleep(2) - if papirus.rotation == 270: - papirus.rotation = 0 - else: - papirus.rotation = papirus.rotation + 90 + draw_image(papirus, args.filepath, args.type) def draw_image(papirus, filepath, type): message = ""