Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Functions
panic.h File Reference
#include <stdint.h>
#include "logic/error_codes.h"
Include dependency graph for panic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Panic (ErrorCode ec)
 

Function Documentation

◆ Panic()

void Panic ( ErrorCode  ec)

Switches the currently active logic state machine into an error state of code ec. It shall be used to halt the firmware while retaining the capability of reporting the error state to the printer

  • a kind of similar to runtime assertions. Implementation is in main.cpp, where we know the currently active logic state machine. The only way out is to reset the board.