Cleanup language.h includes

Remove a few redundant language.h includes

Also remove language.h include from cmdqueue.h to prevent including language.h unnecessarily

Fix missing message.h includes in a few files
This commit is contained in:
Guðni Már Gilbert 2023-06-04 17:41:31 +00:00 committed by DRracer
parent ee074eb548
commit b0ff5f45f3
7 changed files with 6 additions and 7 deletions

View File

@ -5,7 +5,9 @@
#include "Filament_sensor.h"
#include "Timer.h"
#include "eeprom.h"
#include "language.h"
#include "menu.h"
#include "messages.h"
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"

View File

@ -7,6 +7,7 @@
#include "util.h"
#include "ultralcd.h"
#include "Filament_sensor.h"
#include "language.h"
#ifdef PRUSA_FARM
uint8_t farm_mode = 0;

View File

@ -5,6 +5,8 @@
#include "ultralcd.h"
#include "Prusa_farm.h"
#include "meatpack.h"
#include "messages.h"
#include "language.h"
// Reserve BUFSIZE lines of length MAX_CMD_SIZE plus CMDBUFFER_RESERVE_FRONT.
char cmdbuffer[BUFSIZE * (MAX_CMD_SIZE + 1) + CMDBUFFER_RESERVE_FRONT];

View File

@ -2,8 +2,6 @@
#define CMDQUEUE_H
#include "Marlin.h"
#include "language.h"
// String circular buffer. Commands may be pushed to the buffer from both sides:
// Chained commands will be pushed to the front, interactive (from LCD menu)

View File

@ -8,9 +8,6 @@
#include <avr/eeprom.h>
#include <stdint.h>
#include "language.h"
void eeprom_init()
{
eeprom_init_default_byte((uint8_t*)EEPROM_POWER_COUNT, 0);

View File

@ -5,8 +5,8 @@
#include "first_lay_cal.h"
#include "Configuration_var.h"
#include "language.h"
#include "Marlin.h"
#include "messages.h"
#include "cmdqueue.h"
#include "mmu2.h"
#include <avr/pgmspace.h>

View File

@ -26,7 +26,6 @@
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"
#include "language.h"
#include "cardreader.h"
#include "speed_lookuptable.h"
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1