Marek Bel 6 роки тому
батько
коміт
d89c03a0f1
2 змінених файлів з 7 додано та 2 видалено
  1. 6 1
      Firmware/mmu.cpp
  2. 1 1
      Firmware/mmu.h

+ 6 - 1
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))

+ 1 - 1
Firmware/mmu.h

@@ -1,4 +1,4 @@
-//mmu.h
+//! @file
 
 #include <inttypes.h>