Touch up
This commit is contained in:
parent
66129311f4
commit
b947605ab7
@ -193,7 +193,7 @@ static bool pmic_init(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reg: 12h
|
// Reg: 12h
|
||||||
// Enable EXTENT, DCDC1, LDO2 and LDO3
|
// Enable CTRL_EXTEN, DCDC1, LDO2 and LDO3
|
||||||
write_buf[0] = AXP192_DCDC13_LDO23_CTRL;
|
write_buf[0] = AXP192_DCDC13_LDO23_CTRL;
|
||||||
write_buf[1] = AXP192_DCDC13_LDO23_CTRL_EXTEN |
|
write_buf[1] = AXP192_DCDC13_LDO23_CTRL_EXTEN |
|
||||||
AXP192_DCDC13_LDO23_CTRL_LDO3 |
|
AXP192_DCDC13_LDO23_CTRL_LDO3 |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# to test arbitrarily precision integers
|
# to test arbitrary precision integers
|
||||||
|
|
||||||
x = 1000000000000000000000000000000
|
x = 1000000000000000000000000000000
|
||||||
xn = -1000000000000000000000000000000
|
xn = -1000000000000000000000000000000
|
||||||
|
@ -30,7 +30,7 @@ def f():
|
|||||||
return (i, j)
|
return (i, j)
|
||||||
print(f())
|
print(f())
|
||||||
|
|
||||||
# multiple for loops within nested with(s)
|
# multiple for loops within nested with statements
|
||||||
def f():
|
def f():
|
||||||
with CtxMgr(1):
|
with CtxMgr(1):
|
||||||
for i in [1, 2]:
|
for i in [1, 2]:
|
||||||
@ -41,7 +41,7 @@ def f():
|
|||||||
return (i, j, k, l)
|
return (i, j, k, l)
|
||||||
print(f())
|
print(f())
|
||||||
|
|
||||||
# multiple for loops that are optimised, and nested with(s)
|
# multiple for loops that are optimised, and nested with statements
|
||||||
def f():
|
def f():
|
||||||
with CtxMgr(1):
|
with CtxMgr(1):
|
||||||
for i in range(1, 3):
|
for i in range(1, 3):
|
||||||
|
@ -21,10 +21,10 @@ def version_string(path=None, *, valid_semver=False):
|
|||||||
version = tag.strip().decode("utf-8", "strict")
|
version = tag.strip().decode("utf-8", "strict")
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
describe = subprocess.check_output("git describe --tags", shell=True, cwd=path)
|
describe = subprocess.check_output("git describe --tags", shell=True, cwd=path)
|
||||||
tag, additional_commits, committish = (
|
tag, additional_commits, commit_ish = (
|
||||||
describe.strip().decode("utf-8", "strict").rsplit("-", maxsplit=2)
|
describe.strip().decode("utf-8", "strict").rsplit("-", maxsplit=2)
|
||||||
)
|
)
|
||||||
committish = committish[1:]
|
commit_ish = commit_ish[1:]
|
||||||
if valid_semver:
|
if valid_semver:
|
||||||
version_info = semver.parse_version_info(tag)
|
version_info = semver.parse_version_info(tag)
|
||||||
if not version_info.prerelease:
|
if not version_info.prerelease:
|
||||||
@ -33,12 +33,12 @@ def version_string(path=None, *, valid_semver=False):
|
|||||||
+ "-alpha.0.plus."
|
+ "-alpha.0.plus."
|
||||||
+ additional_commits
|
+ additional_commits
|
||||||
+ "+"
|
+ "+"
|
||||||
+ committish
|
+ commit_ish
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
version = tag + ".plus." + additional_commits + "+" + committish
|
version = tag + ".plus." + additional_commits + "+" + commit_ish
|
||||||
else:
|
else:
|
||||||
version = committish
|
version = commit_ish
|
||||||
return version
|
return version
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user