|
|
@ -37,7 +37,7 @@ |
|
|
|
|
|
|
|
#if ENABLED(MKS_TEST) |
|
|
|
|
|
|
|
#include "mks_hardware_test.h" |
|
|
|
#include "mks_hardware.h" |
|
|
|
|
|
|
|
bool pw_det_sta, pw_off_sta, mt_det_sta; |
|
|
|
#if PIN_EXISTS(MT_DET_2) |
|
|
@ -127,6 +127,8 @@ |
|
|
|
delay(100); |
|
|
|
} |
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
|
|
|
|
|
void mks_gpio_test() { |
|
|
|
init_test_gpio(); |
|
|
|
|
|
|
@ -199,6 +201,8 @@ |
|
|
|
mks_disp_test(); |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // MKS_TEST
|
|
|
|
|
|
|
|
static const uint16_t ASCII_Table_16x24[] PROGMEM = { |
|
|
@ -613,10 +617,9 @@ void disp_assets_update_progress(const char *msg) { |
|
|
|
disp_string(100, 165, buf, 0xFFFF, 0x0000); |
|
|
|
} |
|
|
|
|
|
|
|
#if BOTH(MKS_TEST, SDSUPPORT) |
|
|
|
uint8_t mks_test_flag = 0; |
|
|
|
const char *MKSTestPath = "MKS_TEST"; |
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
|
void mks_test_get() { |
|
|
|
SdFile dir, root = card.getroot(); |
|
|
|
if (dir.open(&root, MKSTestPath, O_RDONLY)) |