Changeset 5930:2c5f4164ec03 in roaraudio


Ignore:
Timestamp:
09/11/13 15:14:15 (6 years ago)
Author:
phi
Branch:
default
Message:

set another small internal update. Renamed set command to sset.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/man1/roarlight.1

    r3088 r5930  
    3737 
    3838.TP 
     39\fBsset   chan=val\fR 
     40Set a DMX Channel 
     41 
     42.TP 
    3943\fBset   chan=val\fR 
    40 Set a DMX Channel 
     44Same as sset command. 
    4145 
    4246.SH "SEE ALSO" 
  • roarclients/roarlight.c

    r5929 r5930  
    4848        "  help                    - Show this help\n" 
    4949        "  sleep TIME              - Sleeps for TIME seconds\n" 
    50         "  set   chan=val          - Set a DMX Channel\n" 
     50        "  sset  chan=val          - Set a DMX Channel\n" 
     51        "  set   chan=val          - Same as sset\n" 
    5152       ); 
    5253} 
    5354 
    54 int cmd_set (char * arg) { 
     55static int cmd_sset (char * arg) { 
    5556 char * next = arg; 
    5657 char * k, * v; 
     
    106107   roar_sleep(atoi(argv[++i])); 
    107108 
    108   } else if ( !strcmp(k, "set") ) { 
     109  } else if ( !strcmp(k, "sset") || !strcmp(k, "set") ) { 
    109110   i++; 
    110    if ( cmd_set(argv[i]) == -1 ) { 
     111   if ( cmd_sset(argv[i]) == -1 ) { 
    111112    fprintf(stderr, "Error: can not set channels\n"); 
    112113   } else { 
Note: See TracChangeset for help on using the changeset viewer.