parameters: (self)
docstring: Update hardware state.
docstring_summary: Update hardware state.
docstring_tokens: Update hardware state .
function: def update_hardware_state(self):
  
          """
          Update hardware state.
          """
  
          current_acceleration = self.detect_acceleration()
          if current_acceleration != self.acceleration_detected:
              if current_acceleration:
                  self.trigger_hardware_event(ACCELERATION_DETECTED)
              self.acceleration_detected = current_acceleration
function_tokens: def update_hardware_state ( self ) : current_acceleration = self . detect_acceleration ( ) if current_acceleration != self . acceleration_detected : if current_acceleration : self . trigger_hardware_event ( ACCELERATION_DETECTED ) self . acceleration_detected = current_acceleration