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"
Line 10... Line 10...
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
        }
-
 
Line 19... Line 19...
19
        dictionary *d;
19
        }
Line 20... Line 20...
20
       
20
       
21
        d = iniparser_load(argc[1]);
21
        d = iniparser_load(argc[1]);