Browse Source

2021-01-21 / ct_chen

Actions:
1. logPackTools add *.db to zip file

Files:
1. EVSE/Modularization/logPackTools.c
ct_chen 4 years ago
parent
commit
a6be68c2b7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      EVSE/Modularization/logPackTools.c

+ 3 - 1
EVSE/Modularization/logPackTools.c

@@ -312,11 +312,13 @@ int main(int argc, char *argv[]) {
 				tm=month-i;
 				ty=year;
 			}
-			sprintf(cmd,"%s \t /Storage/ChargeLog/*%04d*%02d*",cmd,ty,tm);
+//			sprintf(cmd,"%s \t /Storage/ChargeLog/*%04d*%02d*",cmd,ty,tm);
 			sprintf(cmd,"%s \t /Storage/EventLog/*%04d*%02d*",cmd,ty,tm);
 			sprintf(cmd,"%s \t /Storage/SystemLog/*%04d*%02d*",cmd,ty,tm);
 			sprintf(cmd,"%s \t /Storage/OCPP/*%04d*%02d*",cmd,ty,tm);
 		}
+		sprintf(cmd,"%s \t /Storage/ChargeLog/*.db",cmd);
+		sprintf(cmd,"%s \t /Storage/OCPP/*.db",cmd);
 		if(isCCS==0){
 			sprintf(cmd,"%s \t /Storage/CCS*.zip",cmd);
 		}