From d89c03a0f14b23ca392198c6143c09d35d811cc8 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 4 Jan 2019 21:26:13 +0100 Subject: [PATCH] Documentation. --- Firmware/mmu.cpp | 7 ++++++- Firmware/mmu.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp index e904742cb..13c7169e3 100644 --- a/Firmware/mmu.cpp +++ b/Firmware/mmu.cpp @@ -1,4 +1,4 @@ -//mmu.cpp +//! @file #include "mmu.h" #include "planner.h" @@ -343,6 +343,11 @@ int8_t mmu_set_filament_type(uint8_t extruder, uint8_t filament) return timeout?1:0; } +//! @brief Enqueue MMUv2 command +//! +//! Call manage_response() after enqueuing to process command. +//! If T command is enqueued, it disables current for extruder motor if TMC2130 driver present. +//! If T or L command is enqueued, it marks filament loaded in AutoDeplete module. void mmu_command(uint8_t cmd) { if ((cmd >= MMU_CMD_T0) && (cmd <= MMU_CMD_T4)) diff --git a/Firmware/mmu.h b/Firmware/mmu.h index 2071891ea..b8d609ee3 100644 --- a/Firmware/mmu.h +++ b/Firmware/mmu.h @@ -1,4 +1,4 @@ -//mmu.h +//! @file #include