def wait_for_setting_value(self, section, setting, value, wait_time=<NUM_LIT>):
expire = time.time() + wait_time<EOL>ok = False<EOL>while not ok and time.time() < expire:<EOL><INDENT>settings = [x for x in self.settings if (x[<NUM_LIT:0>], x[<NUM_LIT:1>]) == (section, setting)]<EOL>if len(settings) > <NUM_LIT:0>:<EOL><INDENT>ok = settings[-<NUM_LIT:1>][<NUM_LIT:2>] == value<EOL><DEDENT>time.sleep(<NUM_LIT:0.1>)<EOL><DEDENT>return ok<EOL>
Function to wait wait_time seconds to see a
        SBP_MSG_SETTINGS_READ_RESP message with a user-specified value