mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-21 21:51:30 +00:00
fix: input not resetting after pressing enter
This commit is contained in:
4
main.py
4
main.py
@@ -51,12 +51,16 @@ def input_thread(connection):
|
|||||||
anc_mode = input()
|
anc_mode = input()
|
||||||
if anc_mode == '1':
|
if anc_mode == '1':
|
||||||
connection.send(enums.SET_NOISE_CANCELLATION_OFF)
|
connection.send(enums.SET_NOISE_CANCELLATION_OFF)
|
||||||
|
logging.info('ANC Off')
|
||||||
elif anc_mode == '2':
|
elif anc_mode == '2':
|
||||||
connection.send(enums.SET_NOISE_CANCELLATION_TRANSPARENCY)
|
connection.send(enums.SET_NOISE_CANCELLATION_TRANSPARENCY)
|
||||||
|
logging.info('Transparency On')
|
||||||
elif anc_mode == '3':
|
elif anc_mode == '3':
|
||||||
connection.send(enums.SET_NOISE_CANCELLATION_ADAPTIVE)
|
connection.send(enums.SET_NOISE_CANCELLATION_ADAPTIVE)
|
||||||
|
logging.info('Adaptive Transparency On')
|
||||||
elif anc_mode == '4':
|
elif anc_mode == '4':
|
||||||
connection.send(enums.SET_NOISE_CANCELLATION_ON)
|
connection.send(enums.SET_NOISE_CANCELLATION_ON)
|
||||||
|
logging.info('ANC On')
|
||||||
else:
|
else:
|
||||||
logging.error('Invalid ANC Mode')
|
logging.error('Invalid ANC Mode')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user