Subversion Repositories FlightCtrl

Rev

Rev 64 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 64 Rev 65
Line 8... Line 8...
8
#include "main.h"
8
#include "main.h"
9
#include "serial.h"
9
#include "serial.h"
10
 
10
 
11
int main(int argv, char *argc[])
11
int main(int argv, char *argc[])
12
{
12
{
-
 
13
        dictionary *d;
13
        if(argv != 4)
14
        if(argv != 4)
14
        {      
15
        {      
15
                printf("\nUsage: ./mkset <setting_file> <setting> <serial_port>\n\n\n");
16
                printf("\nUsage: ./mkset <setting_file> <setting> <serial_port>\n\n\n");
16
                printf("\t Example: ./mkset Default.mkp 1 /dev/ttyS0\n\n");
17
                printf("\t Example: ./mkset Default.mkp 1 /dev/ttyS0\n\n");
17
                exit(2);
18
                exit(2);
18
        }
19
        }
19
        dictionary *d;
-
 
20
       
20
       
21
        d = iniparser_load(argc[1]);
21
        d = iniparser_load(argc[1]);
22
       
22
       
23
        strcpy(Param.Name, (iniparser_getstr(d,"Setup:Name")));
23
        strcpy(Param.Name, (iniparser_getstr(d,"Setup:Name")));
24
        if(Param.Name=="")
24
        if(Param.Name=="")