[FL-3098] Up toolchain to version 20 (#2397)
* Up toolchain to 20 * Python reformat, add version info into fbtenv Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -22,7 +22,6 @@ def _convert_image(source_filename: str):
|
||||
|
||||
|
||||
class DolphinBubbleAnimation:
|
||||
|
||||
FILE_TYPE = "Flipper Animation"
|
||||
FILE_VERSION = 1
|
||||
|
||||
@@ -243,7 +242,6 @@ class DolphinBubbleAnimation:
|
||||
|
||||
|
||||
class DolphinManifest:
|
||||
|
||||
FILE_TYPE = "Flipper Animation Manifest"
|
||||
FILE_VERSION = 1
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import serial.tools.list_ports as list_ports
|
||||
|
||||
|
||||
# Returns a valid port or None, if it cannot be found
|
||||
def resolve_port(logger, portname: str = "auto"):
|
||||
if portname != "auto":
|
||||
|
@@ -173,12 +173,14 @@ class Templite:
|
||||
"""Renders the template according to the given namespace."""
|
||||
stack = []
|
||||
namespace["__file__"] = self.file
|
||||
|
||||
# add write method
|
||||
def write(*args):
|
||||
for value in args:
|
||||
stack.append(str(value))
|
||||
|
||||
namespace["write"] = write
|
||||
|
||||
# add include method
|
||||
def include(file):
|
||||
if not os.path.isabs(file):
|
||||
|
Reference in New Issue
Block a user