Skip to content

Commit

Permalink
logging and fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellee1019 committed Feb 5, 2024
1 parent 79005ca commit 0eb28ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,15 @@ def stop_thread(self):

@classmethod
def new(cls, config: ComponentConfig, dependencies: Mapping[ResourceName, ResourceBase]) -> Self:
LOGGER.info("starting prusa camera server...")
snapshotter = cls(config.name)
snapshotter.reconfigure(config, dependencies)
snapshotter.start_thread()
return snapshotter

async def capture_images(self):
while True:
if self.event.is_set():
break
return
for camera in self.cameras:
try:
image = await camera.get_image()
Expand Down

0 comments on commit 0eb28ac

Please sign in to comment.