Skip to content

Commit

Permalink
🎨 Clean up IA_CREALITY includes (MarlinFirmware#25530)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbq authored and EvilGremlin committed May 17, 2023
1 parent dbb20c1 commit f1e95d6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
6 changes: 1 addition & 5 deletions Marlin/src/lcd/extui/ia_creality/FileNavigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@

#if DGUS_LCD_UI_IA_CREALITY

#include "ia_creality_extui.h"
#include "FileNavigator.h"

using namespace ExtUI;

#define DEBUG_OUT ENABLED(DEBUG_DWIN)
#include "../../../core/debug_out.h"

FileList FileNavigator::filelist; // Instance of the Marlin file API
char FileNavigator::currentfoldername[MAX_PATH_LEN]; // Current folder path
uint16_t FileNavigator::lastindex;
Expand Down Expand Up @@ -124,8 +122,6 @@ void FileNavigator::getFiles(uint16_t index) {
const int filelen = strlen(filelist.filename());
if (filelen > 20) {
char *buf = (char *)filelist.filename();
//char buf[filelen];
//strcpy(&buf[filelen], filelist.filename());
buf[18] = '\0'; // cutoff at screen edge
rtscheck.RTS_SndData(buf, (SDFILE_ADDR + (fcnt * 20)));
}
Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/lcd/extui/ia_creality/FileNavigator.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
* Written by Insanity Automation
* ***************************************/

#include "creality_extui.h"
#include "../ui_api.h"

#define MAX_FOLDER_DEPTH 4 // Limit folder depth TFT has a limit for the file path
#define MAX_CMND_LEN 16 * MAX_FOLDER_DEPTH // Maximum Length for a Panel command
#define MAX_PATH_LEN 16 * MAX_FOLDER_DEPTH // Maximum number of characters in a SD file path
Expand Down
10 changes: 1 addition & 9 deletions Marlin/src/lcd/extui/ia_creality/creality_extui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,8 @@

#if DGUS_LCD_UI_IA_CREALITY

#include "creality_extui.h"
#include "ia_creality_extui.h"
#include "FileNavigator.h"
#include "../ui_api.h"

#include <HardwareSerial.h>
#include <WString.h>
#include <stdio.h>

#define DEBUG_OUT ENABLED(DEBUG_DWIN)
#include "../../../core/debug_out.h"

namespace ExtUI {
static uint16_t fileIndex = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#pragma once

/* ****************************************
* lcd/extui/ia_creality/creality_extui.h
* lcd/extui/ia_creality/ia_creality_extui.h
* ****************************************
* Extensible_UI implementation for Creality DWIN
* 10SPro, Max, CRX, and others
Expand All @@ -32,7 +32,6 @@
* ***************************************/

#include "string.h"
#include <Arduino.h>
#include "../ui_api.h"

/*********************************/
Expand Down

0 comments on commit f1e95d6

Please sign in to comment.