MCPcopy Create free account
hub / github.com/bitcraze/crazyflie-lib-python / write_cf1_config

Method write_cf1_config

cflib/bootloader/__init__.py:130–137  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

128 return self._cload.read_flash(addr=0xFF, page=config_page)
129
130 def write_cf1_config(self, data):
131 target = self._cload.targets[0xFF]
132 config_page = target.flash_pages - 1
133
134 to_flash = {'target': target, 'data': data, 'type': 'CF1 config',
135 'start_page': config_page}
136
137 self._internal_flash(target=to_flash)
138
139 def flash(self, filename, targets):
140 for target in targets:

Callers

nothing calls this directly

Calls 1

_internal_flashMethod · 0.95

Tested by

no test coverage detected