Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions octoprint_filamentsensorsimplified/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ def read_sensor_multiple(self, pin, power, trigger_mode):
oldTrigger = newTrigger
elif oldTrigger != newTrigger:
x = 0
# imapping: Adding reset of oldTrigger so it looks for ten consecutive values
# rather than waiting for ten of the original values. This was the cause of the log spamming.
oldTrigger = newTrigger
# Commenting out this info log due to spamming the log file and filling up the memory quickly.
# See https://github.com/LuckyX182/Filament_sensor_simplified/issues/64
#self._logger.info("Repeating sensor read due to false positives")
Expand Down