Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marie
qmk_luckenbach_fork
Commits
3cb6fb29
Unverified
Commit
3cb6fb29
authored
Apr 26, 2020
by
Joel Challis
Committed by
GitHub
Apr 26, 2020
Browse files
Merge pull request #8931 from kbrock/kle2info_2
[kle2json] fix rounding in output
parents
6ec3cc02
5c666398
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/python/kle2xy.py
View file @
3cb6fb29
...
...
@@ -110,8 +110,8 @@ class KLE2xy(list):
else
:
current_key
[
'name'
]
=
key
current_key
[
'row'
]
=
current_row
current_key
[
'column'
]
=
current_col
current_key
[
'row'
]
=
round
(
current_row
,
2
)
current_key
[
'column'
]
=
round
(
current_col
,
2
)
# Determine the X center
x_center
=
(
current_key
[
'width'
]
*
self
.
key_width
)
/
2
...
...
lib/python/qmk/cli/kle2json.py
View file @
3cb6fb29
...
...
@@ -69,7 +69,7 @@ def kle2json(cli):
# Replace layout in keyboard json
keyboard
=
keyboard
.
replace
(
'"LAYOUT_JSON_HERE"'
,
layout
)
# Write our info.json
file
=
open
(
out_path
+
"
/
info.json"
,
"w"
)
file
=
open
(
out_path
/
"info.json"
,
"w"
)
file
.
write
(
keyboard
)
file
.
close
()
cli
.
log
.
info
(
'Wrote out {fg_cyan}%s/info.json'
,
out_path
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment