Ignore:
Timestamp:
05/18/10 03:42:20 (11 years ago)
Author:
sc
Message:
  • initial support for discrete control commands
File:
1 edited

Legend:

Unmodified
Added
Removed
  • remote_control/puzzlebox_brainstorms_server.py

    r36 r42  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.02.05 
     11# Last Update: 2010.05.03 
    1212# 
    1313##################################################################### 
     
    2727 
    2828DEBUG = 1 
     29 
     30DISCRETE_CONTROL_COMMANDS = configuration.DISCRETE_CONTROL_COMMANDS 
    2931 
    3032SERVER_INTERFACE = configuration.SERVER_INTERFACE 
     
    5759                 
    5860                 
    59                 command_line = 'python puzzlebox_brainstorms_remote_control.py --command=%s' % command 
    60                  
    61                 os.system(command_line) 
     61                if DISCRETE_CONTROL_COMMANDS: 
     62                         
     63                        command_line = 'python puzzlebox_brainstorms_remote_control.py --command=%s' % command 
     64                         
     65                        os.system(command_line) 
    6266                 
    6367                 
Note: See TracChangeset for help on using the changeset viewer.