Skip to content

Commit

Permalink
fix: random while loop error
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Oct 15, 2021
1 parent 4653184 commit 99ca1c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions content/post/engineering/reverse-engineering-fridge4.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ Here is the defrosting code. It contains only one error:

```python
async def _defrost():
i = 0
while i < 60:
for i in range(60):
try:
hal.fridge_freezer.defrosting = True
break
Expand Down

0 comments on commit 99ca1c9

Please sign in to comment.