From 700e9b92b635f32c9378f02109f38f94545ec240 Mon Sep 17 00:00:00 2001 From: Marianpol Date: Fri, 13 Nov 2020 01:07:16 +0100 Subject: [PATCH] CSV only performance fix Saves around 4ms that were lost on a screen update between the last and the first parameter request from the list --- pyren/mod_ecu.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyren/mod_ecu.py b/pyren/mod_ecu.py index c5bb367..839f075 100755 --- a/pyren/mod_ecu.py +++ b/pyren/mod_ecu.py @@ -432,6 +432,12 @@ class ECU: if len(datarefs)==0 and 'DE' not in path: return + + if mod_globals.opt_csv and mod_globals.opt_csv_only: + print "Data is sending directly to csv-file" + print "" + print "Press any key to exit" + page = 0 while(True): @@ -453,12 +459,6 @@ class ECU: self.elm.clear_cache() - if mod_globals.opt_csv and mod_globals.opt_csv_only: - clearScreen() - print "Data is sending directly to csv-file" - print "" - print "Press any key to exit" - for dr in datarefs: datastr = dr.name help = dr.type