code: def wait_for_setting_value(self, section, setting, value, wait_time=5.0):
          
          expire = time.time() + wait_time
          ok = False
          while not ok and time.time() < expire:
              settings = [x for x in self.settings if (x[0], x[1]) == (section, setting)]
              # Check to see if the last setting has the value we want
              if len(settings) > 0:
                  ok = settings[-1][2] == value
  
              time.sleep(0.1)
          return ok
docs: Function to wait wait_time seconds to see a
          SBP_MSG_SETTINGS_READ_RESP message with a user-specified value