Skip to content

Commit

Permalink
0 kurang 1 digit di play audio
Browse files Browse the repository at this point in the history
  • Loading branch information
udibagas committed Sep 7, 2019
1 parent d8d1f8c commit 418cfc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions parking_blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ def save_data(gate, data):
def play_audio(s, gate, audio, wait=False):
logging.info(gate['name'] + ' : Playing "' + audio + '"')
cmd_list = {
'take_ticket' : b'\xa6MT0002\xa9',
'invalid_card' : b'\xa6MT0003\xa9',
'help' : b'\xa6MT0005\xa9',
'thanks' : b'\xa6MT0006\xa9',
'welcome' : b'\xa6MT0007\xa9'
'take_ticket' : b'\xa6MT00002\xa9',
'invalid_card' : b'\xa6MT00003\xa9',
'help' : b'\xa6MT00005\xa9',
'thanks' : b'\xa6MT00006\xa9',
'welcome' : b'\xa6MT00007\xa9'
}

s.sendall(cmd_list[audio])
Expand Down

0 comments on commit 418cfc7

Please sign in to comment.