Update qmk_cli/subcommands/console.py

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
This commit is contained in:
Nick Brassel
2023-04-03 07:43:04 +10:00
committed by GitHub
parent 6638c13c36
commit 32129ee5a2
+1 -2
View File
@@ -141,8 +141,7 @@ class MonitorDevice(object):
identifier = (int2hex(message['vendor_id']), int2hex(message['product_id'])) if self.numeric else (message['manufacturer_string'], message['product_string'])
message['identifier'] = ':'.join(identifier)
message['ts'] = '{style_dim}{fg_green}%s{style_reset_all} ' % (strftime(cli.config.general.datetime_fmt),) if cli.args.timestamp else ''
message['text'] = message['text'].replace('%', '%%')
cli.echo('%(ts)s%(color)s%(identifier)s:%(index)d{style_reset_all}: %(text)s' % message)
cli.echo('%(ts)s%(color)s%(identifier)s:%(index)d{style_reset_all}: %(text)s', **message)
except self.hid.HIDException:
break