Skip to content

self.active is initialized in the wrong class. #60

@sillyfunnypedro

Description

@sillyfunnypedro

In the code that i added to deal with spurious GPIO call backs i added an initializer for self.active to the embedded class filamentStatusWatcher in line 26. self.active = 0

This initialization needs to be added to the class FilamentReloadedPlugin

I would suggest putting it at the end of the initialize function for the Class FilamentReloadedPlugin

Without this change i was getting an error when sensor_callback was called the first time. Initializing this variable correctly will fix this problem.

How to repo.
start octoprint with the filament_reloaded running and watch the log.

How to know when the fix is done. The error is gone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions