Revision 9c7ef5fc

View differences:

include/humotion/server/eyelid_motion_generator.h
73 73
    static const float EYEBLINK_BLOCKING_TIME;
74 74

  
75 75
    boost::system_time periodic_blink_start_time;
76
    boost::system_time eyeblink_timeout[SIDE_ID_SIZE];
76
    boost::system_time eyeblink_timeout[SIDE_ID_SIZE+10];
77 77
    boost::system_time eyeblink_blocked_timeout;
78 78

  
79 79
};
src/server/eyelid_motion_generator.cpp
106 106
//! process any external blink requests
107 107
void EyelidMotionGenerator::start_external_eyeblinks(int duration_left, int duration_right){
108 108
    //manual eyeblinks will ALWAYs get executed as we use a negative block timeout (=timout has already passed)
109
    eyeblink_blocked_timeout = get_system_time() - posix_time::seconds(100);
109
    if ((duration_left != 0) || (duration_right != 0)){
110
	eyeblink_blocked_timeout = get_system_time() - posix_time::seconds(100);
111
    }
112

  
110 113

  
111 114
    if (duration_left == 0){
112 115
        //nothing to do

Also available in: Unified diff