Skip to content

Commit

Permalink
Merge pull request #4747 from gudnimg/minor-fixes-for-future-tests
Browse files Browse the repository at this point in the history
Fix compiler warning and add missing includes in unit test environment
  • Loading branch information
3d-gussner authored Aug 20, 2024
2 parents e2e6999 + 80f2761 commit f64f2bb
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 10 deletions.
1 change: 1 addition & 0 deletions Firmware/Configuration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef CONFIGURATION_H
#define CONFIGURATION_H

#include <stdint.h>
#include "boards.h"

#define STR_HELPER(x) #x
Expand Down
1 change: 1 addition & 0 deletions Firmware/Filament_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "language.h"
#include "menu.h"
#include "messages.h"
#include "mmu2.h"
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"
Expand Down
3 changes: 0 additions & 3 deletions Firmware/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "Configuration.h"
#include "pins.h"
#include "Timer.h"
#include "mmu2.h"
#include "printer_state.h"

#ifndef AT90USB
Expand Down Expand Up @@ -64,8 +63,6 @@
#define MYSERIAL MSerial
#endif

#include "lcd.h"

#define SERIAL_PROTOCOL(x) (MYSERIAL.print(x))
#define SERIAL_PROTOCOL_F(x,y) (MYSERIAL.print(x,y))
#define SERIAL_PROTOCOLPGM(x) (serialprintPGM(PSTR(x)))
Expand Down
1 change: 1 addition & 0 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include "cardreader.h"
#include "ConfigurationStore.h"
#include "language.h"
#include "lcd.h"
#include "math.h"
#include "util.h"
#include "Timer.h"
Expand Down
1 change: 1 addition & 0 deletions Firmware/Prusa_farm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "ultralcd.h"
#include "Filament_sensor.h"
#include "language.h"
#include "lcd.h"
#include "stopwatch.h"

#ifdef PRUSA_FARM
Expand Down
1 change: 1 addition & 0 deletions Firmware/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define EEPROM_H

#include <stdint.h>
#include <stddef.h>
#include "Configuration_var.h"

// Custom Mendel Name
Expand Down
1 change: 1 addition & 0 deletions Firmware/mesh_bed_calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "ConfigurationStore.h"
#include "util.h"
#include "language.h"
#include "lcd.h"
#include "mesh_bed_calibration.h"
#include "mesh_bed_leveling.h"
#include "stepper.h"
Expand Down
2 changes: 1 addition & 1 deletion Firmware/mesh_bed_calibration.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "Marlin.h"
#include <avr/pgmspace.h>

#define BED_ZERO_REF_X (- 22.f + X_PROBE_OFFSET_FROM_EXTRUDER) // -22 + 23 = 1
#define BED_ZERO_REF_Y (- 0.6f + Y_PROBE_OFFSET_FROM_EXTRUDER + 4.f) // -0.6 + 5 + 4 = 8.4
Expand Down
1 change: 1 addition & 0 deletions Firmware/mmu2_reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "ultralcd.h"
#include "Filament_sensor.h"
#include "language.h"
#include "lcd.h"
#include "temperature.h"
#include "sound.h"

Expand Down
1 change: 1 addition & 0 deletions Firmware/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include "temperature.h"
#include "fancheck.h"
#include "ultralcd.h"
#include "lcd.h"
#include "language.h"
#include "ConfigurationStore.h"

Expand Down
1 change: 1 addition & 0 deletions Firmware/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"
#include "lcd.h"
#include "cardreader.h"
#include "speed_lookuptable.h"
#if defined(DIGIPOTSS_PIN) && DIGIPOTSS_PIN > -1
Expand Down
1 change: 1 addition & 0 deletions Firmware/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "fancheck.h"
#include "messages.h"
#include "language.h"
#include "lcd.h"

#include "SdFatUtil.h"

Expand Down
14 changes: 9 additions & 5 deletions Firmware/util.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#include "Configuration.h"
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include <stdio.h> // for sprintf_P

#include "ultralcd.h"
#include "Configuration.h"
#include "language.h"
#include "lcd.h"
#include "Marlin.h" // delay_keep_alive
#include "menu.h"
#include "Prusa_farm.h"
#include "sound.h"
#include "language.h"
#include "ultralcd.h"
#include "util.h"
#include <avr/pgmspace.h>
#include "Prusa_farm.h"

// Allocate the version string in the program memory. Otherwise the string lands either on the stack or in the global RAM.
static const char FW_VERSION_STR[] PROGMEM = FW_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion Firmware/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct unquoted_string {
: len(0)
, found(false)
{
char * pStrEnd = NULL;
const char * pStrEnd = NULL;

// Start of the string
this->ptr = strchr(pStr, '"');
Expand Down
1 change: 1 addition & 0 deletions Firmware/xyzcal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "xyzcal.h"
#include <avr/wdt.h>
#include "lcd.h"
#include "stepper.h"
#include "temperature.h"
#include "sm4.h"
Expand Down

0 comments on commit f64f2bb

Please sign in to comment.