Changeset 1095


Ignore:
Timestamp:
03/20/11 22:19:19 (2 years ago)
Author:
reyalP
Message:

fix bug in PTP WriteScriptMsg? status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp/core/ptp.c

    r1090 r1095  
    569569      if (!script_is_running()) { 
    570570        ptp.param1 = PTP_CHDK_S_MSGSTATUS_NOTRUN; 
    571       } 
    572       // check if target script for message is running 
    573       if(param2 && param2 != script_run_id) { 
     571      } else if(param2 && param2 != script_run_id) {// check if target script for message is running 
    574572        ptp.param1 = PTP_CHDK_S_MSGSTATUS_BADID; 
    575       } 
    576       if(script_msg_q_full(&msg_q_in)) { 
     573      } else if(script_msg_q_full(&msg_q_in)) { 
    577574        ptp.param1 = PTP_CHDK_S_MSGSTATUS_QFULL; 
    578575      } 
Note: See TracChangeset for help on using the changeset viewer.