diff --git a/src/modm/driver/motion/adns9800.fiber.hpp b/src/modm/driver/motion/adns9800.hpp similarity index 100% rename from src/modm/driver/motion/adns9800.fiber.hpp rename to src/modm/driver/motion/adns9800.hpp diff --git a/src/modm/driver/motion/adns9800.lb b/src/modm/driver/motion/adns9800.lb index 84bf2bf1bf..027aacfd1c 100644 --- a/src/modm/driver/motion/adns9800.lb +++ b/src/modm/driver/motion/adns9800.lb @@ -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", @@ -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")