filename parameter

This commit is contained in:
rusefi 2020-07-19 21:30:49 -04:00
parent ee59fad3a2
commit e7b86346e8
3 changed files with 4 additions and 4 deletions

View File

@ -486,9 +486,9 @@ static void writeFooter() {
writeTimingMarker();
}
void writeFile(CompositeEvent *events, int count) {
void writeFile(const char * fileName, CompositeEvent *events, int count) {
ptr = fopen("test.logicdata", "wb");
ptr = fopen(fileName, "wb");
writeHeader();
writeEvents(events, count);

View File

@ -17,4 +17,4 @@ struct CompositeEvent {
bool injector;
};
void writeFile(CompositeEvent *events, int count);
void writeFile(const char * fileName, CompositeEvent *events, int count);

View File

@ -27,7 +27,7 @@ void runLogicdataSandbox() {
setEvent(events, index++, 1000030, false, false, false, false, true, false);
setEvent(events, index++, 2000030, false, false, true, false, false, true);
writeFile(events, index);
writeFile("test.logicdata", events, index);
printf("Done!\n");
}