From 6a37c7beefa6911b47048a384f3448fd670fa4c6 Mon Sep 17 00:00:00 2001 From: fkoran Date: Thu, 24 Aug 2017 11:23:36 -0700 Subject: [PATCH] Remove test code from papirus-draw (#149) 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 = ""