3.1.8.2.9. waf_tools.bms_config_generate.set_aerosol_sensor

waf_tools.bms_config_generate.set_aerosol_sensor(bld: BuildContext, system: System) → list[dict]

Configure aerosol sensor defines and environment variables.

Sets FOXBMS_HAVE_AEROSOL_SENSOR to (1u) if a sensor is configured, otherwise (0u). Additionally emits manufacturer- and model-specific defines and populates bld.env.FOXBMS_AS_MANUFACTURER / FOXBMS_AS_MODEL.

Parameters:
  • bld – The active waf build context.

  • system – The validated system configuration.

Returns:

A list of define dictionaries for header generation.