Skip to content

Commit d561f41

Browse files
committed
treat salkinium review #1
1 parent 6748582 commit d561f41

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/modm/driver/motion/adns9800.lb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ def prepare(module, options):
2828
enumeration=["a4", "a4b", "a5", "a6"],
2929
description="Select the firmware version to initialize the device with.",
3030
default="a6"))
31-
module.add_option(
32-
BooleanOption(
33-
name="use_fiber",
34-
description="Use an advanced driver without backwards compatibilty for protothreads.",
35-
default="false"))
3631

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

51-
if env["use_fiber"]:
52-
env.copy("adns9800.fiber.hpp", "adns9800.hpp")
53-
env.copy("adns9800_data.hpp")
54-
else:
46+
if not env.has_module(":processing:fiber"):
5547
env.copy("adns9800.rf.hpp", "adns9800.hpp")
48+
return
49+
50+
env.copy("adns9800.hpp")
51+
env.copy("adns9800_data.hpp")

0 commit comments

Comments
 (0)