Skip to content

Maybe we can have a dummy start_periodic_measurement() function #27

Open
@dglaude

Description

@dglaude

SCD4x library has a function:

    def start_periodic_measurement(self):
        """Put sensor into working mode, about 5s per measurement"""
        self._send_command(_SCD4X_STARTPERIODICMEASUREMENT)

When porting code from SCD4x to SCD30 you have to wonder about this.
Maybe we could have a dummy function that has that name but does nothing:

    def start_periodic_measurement(self):
        """Dummy function for forward compatibility with SCD4x library"""
        pass

This would permit the same code (almost) to work on both kind of sensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions