Subversion Repositories programming

Rev

Rev 348 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 348 Rev 350
Line 228... Line 228...
228
    {
228
    {
229
        val = atoi (SplitVec[i].c_str());
229
        val = atoi (SplitVec[i].c_str());
230
 
230
 
231
        // Ignore values that are outside of range
231
        // Ignore values that are outside of range
232
        if (val >= 0 && val < numFloors)
232
        if (val >= 0 && val < numFloors)
233
        {
-
 
234
            controller->push_button_in_elevator (elevator_num, val);
233
            controller->push_button_in_elevator (elevator_num, val);
235
            std::cout << "Pushing button: " << val << std::endl;
-
 
236
        }
-
 
237
    }
234
    }
238
}
235
}
239
 
236