Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
efe9a7c8eThis file is pinned to the selected release. Download the original to open it in your design tool.
// version.c
#include "version.h"
#include "config.h"
#ifndef DEVSTAGE // developer can set branch/ticket/etc.
#if (FW_STAGENR == 0)
#define DEVSTAGE pre - alpha
#elif (FW_STAGENR == 1)
#define DEVSTAGE alpha
#elif (FW_STAGENR == 2)
#define DEVSTAGE beta
#elif (FW_STAGENR == 3)
#define DEVSTAGE RC
#elif (FW_STAGENR == 4)
#define DEVSTAGE final
#endif //(FW_STAGENR == x)
#endif
#if (PRINTER_TYPE == PRINTER_PRUSA_MINI)
#define FWNAME "Buddy_MINI";
#endif //(PRINTER_TYPE ==
#define _STR(x) #x
#define STR(x) _STR(x)
//TODO:
// MAJ/MIN/SUB in structure from FW_VERSION
#define VERSION_MAJ(v) #v
#define VERSION_MIN(v) #v
#define VERSION_SUB(v) #v
#define VERSION(ver) VERSION_MAJ(4) \
"." VERSION_MIN(0) "." VERSION_SUB(0)
const char version_firmware_name[] = FWNAME;
#if (FW_STAGENR < 4)
const char version_version[] = VERSION(FW_VERSION) "-" STR(DEVSTAGE) "+" STR(FW_BUILDNR) FW_BUILDSX;
#else
const char version_version[] = VERSION(FW_VERSION);
#endif
#ifdef _DEBUG
const char version_build[] = "build " STR(FW_BUILDNR) FW_BUILDSX " (DEBUG)";
#else
const char version_build[] = "build " STR(FW_BUILDNR) FW_BUILDSX;
#endif