Skip to content

Commit

Permalink
search ota_applied_flag in both partitions to allow force uplaod of s…
Browse files Browse the repository at this point in the history
…w info after new flash
  • Loading branch information
ftylitak committed Jun 11, 2024
1 parent a515dd8 commit e3eced6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion insighioNode/apps/demo_console/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,11 @@ def executeDeviceConfigurationUpload(cfg, network):
utils.deleteFlagFile("/configLog")

# whenever a new config log is uplaoded, upload also statistics for the device
if configUploadFileContent or utils.existsFlagFile("/ota_applied_flag"):
if configUploadFileContent or utils.existsFlagFile("/ota_applied_flag") or utils.existsFile("/ota_applied_flag"):
message_sent = executeDeviceStatisticsUpload(cfg, network)
if message_sent:
utils.deleteFlagFile("/ota_applied_flag")
utils.deleteFile("/ota_applied_flag")


def notifyConnected(network):
Expand Down

0 comments on commit e3eced6

Please sign in to comment.