Rev 601 | Rev 695 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 601 | Rev 642 | ||
---|---|---|---|
Line 509... | Line 509... | ||
509 | sprintf(wpline, "Type=%d\r\n", PointList[i].Type + 1); |
509 | sprintf(wpline, "Type=%d\r\n", PointList[i].Type + 1); |
510 | fputs_(wpline, fp); |
510 | fputs_(wpline, fp); |
511 | // write prefix |
511 | // write prefix |
512 | sprintf(wpline, "Prefix=%s\r\n", PointList[i].Name); |
512 | sprintf(wpline, "Prefix=%s\r\n", PointList[i].Name); |
513 | fputs_(wpline, fp); |
513 | fputs_(wpline, fp); |
- | 514 | sprintf(wpline, "AutoTrigger=%d\r\n", PointList[i].AutoPhotoDistance); |
|
- | 515 | fputs_(wpline, fp); |
|
514 | } // EOF loop over all points |
516 | } // EOF loop over all points |
515 | } // EOF if(PointCount) |
517 | } // EOF if(PointCount) |
516 | if(EOF == fclose_(fp)) |
518 | if(EOF == fclose_(fp)) |
517 | { |
519 | { |
518 | UART1_PutString("failed!\r\n"); |
520 | UART1_PutString("failed!\r\n"); |
Line 675... | Line 677... | ||
675 | else if(strcmp(name, "PREFIX") == 0) |
677 | else if(strcmp(name, "PREFIX") == 0) |
676 | { |
678 | { |
677 | strncpy(PointList[IsPointSection-1].Name, value, 4); |
679 | strncpy(PointList[IsPointSection-1].Name, value, 4); |
678 | PointList[IsPointSection-1].Name[3] = 0; // Terminate string |
680 | PointList[IsPointSection-1].Name[3] = 0; // Terminate string |
679 | } |
681 | } |
- | 682 | else if(strcmp(name, "AUTOTRIGGER") == 0) |
|
- | 683 | { |
|
- | 684 | PointList[IsPointSection-1].AutoPhotoDistance = (u8)atoi(value); |
|
- | 685 | } |
|
680 | else |
686 | else |
681 | { |
687 | { |
682 | UART1_PutString("Unknown key: "); |
688 | UART1_PutString("Unknown key: "); |
683 | UART1_PutString(name); |
689 | UART1_PutString(name); |
684 | UART1_PutString("\r\n"); |
690 | UART1_PutString("\r\n"); |