Skip to content

Commit

Permalink
treat salkinium review-1
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSaw committed Jul 15, 2024
1 parent 6748582 commit 6517354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
File renamed without changes.
14 changes: 5 additions & 9 deletions src/modm/driver/motion/adns9800.lb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ def prepare(module, options):
enumeration=["a4", "a4b", "a5", "a6"],
description="Select the firmware version to initialize the device with.",
default="a6"))
module.add_option(
BooleanOption(
name="use_fiber",
description="Use an advanced driver without backwards compatibilty for protothreads.",
default="false"))

module.depends(
":processing:resumable",
Expand All @@ -48,8 +43,9 @@ def build(env):
env.outbasepath = "modm/src/modm/driver/motion"
env.copy("adns9800_firmware_{}.cpp".format(env["firmware"]), "adns9800_firmware.cpp")

if env["use_fiber"]:
env.copy("adns9800.fiber.hpp", "adns9800.hpp")
env.copy("adns9800_data.hpp")
else:
if not env.has_module(":processing:fiber"):
env.copy("adns9800.rf.hpp", "adns9800.hpp")
return

env.copy("adns9800.hpp")
env.copy("adns9800_data.hpp")

0 comments on commit 6517354

Please sign in to comment.