vnprak / Online-Risk

0 stars 0 forks source link

Bug in buzzer function #11

Closed ffund closed 3 years ago

ffund commented 3 years ago

demo.py output:

Software library for the Online Risk project.
No tag detected
Error reading tag info
Display turned ON
Display turned OFF
test
Traceback (most recent call last):
  File "demo.py", line 15, in <module>
    risk.buzz(10)
  File "/home/pi/sp21/Online-Risk/risk.py", line 32, in buzz
    print("Buzzer buzzing for " + dur + seconds)
TypeError: can only concatenate str (not "int") to str

I'm guessing you meant str(dur), also "seconds" in quotes.

ffund commented 3 years ago

(still applies)