Prusa MINI Firmware overview
marlin_errors.c File Reference
#include "marlin_errors.h"
#include <stdio.h>

Functions

const char * marlin_errors_get_name (uint8_t err_id)
 

Variables

const char * __err_name []
 

Function Documentation

◆ marlin_errors_get_name()

const char* marlin_errors_get_name ( uint8_t  err_id)
13  {
14  if (err_id <= MARLIN_ERR_MAX)
15  return __err_name[err_id];
16  return "";
17 }

Variable Documentation

◆ __err_name

const char* __err_name[]
Initial value:
= {
"TMCDrivererror",
"ProbingFailed",
}
__err_name
const char * __err_name[]
Definition: marlin_errors.c:7
MARLIN_ERR_MAX
#define MARLIN_ERR_MAX
Definition: marlin_errors.h:10