Avoid to rewrite platformio.ini file when 'upload_flags' is used (issue: https://github.com/gepd/Deviot/issues/274)
@@ -365,8 +365,10 @@ class ProjectCheck(QuickMenu):
return ended
flag = '--auth={0}'.format(auth_pass)
- config.set(environment, 'upload_flags', flag)
+ if(config.get(environment, 'upload_flags')[0] != flag):
+ config.set(environment, 'upload_flags', flag)
+ logger.debug("write auth ini")
with open(ini_path, 'w') as configfile:
config.write(configfile)
