MCPcopy Create free account
hub / github.com/ExpressLRS/ExpressLRS / length_check

Function length_check

src/python/binary_configurator.py:114–120  ·  view source on GitHub ↗
(l, f)

Source from the content-addressed store, hash-verified

112 )
113
114def length_check(l, f):
115 def x(s):
116 if (len(s) > l):
117 raise argparse.ArgumentTypeError(f'too long, {l} chars max')
118 else:
119 return s
120 return x
121
122def ask_for_firmware(args):
123 moduletype = 'tx' if args.tx else 'rx'

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected