浏览代码

Fix compiler warning: sketch/ultralcd.cpp:6573:23: warning: array subscript has type 'char' [-Wchar-subscripts]

Marek Bel 6 年之前
父节点
当前提交
87a650f2cb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Firmware/ultralcd.cpp

+ 2 - 2
Firmware/ultralcd.cpp

@@ -150,7 +150,7 @@ static bool lcd_selfcheck_endstops();
 
 #ifdef TMC2130
 static void reset_crash_det(unsigned char axis);
-static bool lcd_selfcheck_axis_sg(char axis);
+static bool lcd_selfcheck_axis_sg(unsigned char axis);
 static bool lcd_selfcheck_axis(int _axis, int _travel);
 #else
 static bool lcd_selfcheck_endstops();
@@ -6543,7 +6543,7 @@ static void reset_crash_det(unsigned char axis) {
 	if (eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET)) tmc2130_sg_stop_on_crash = true;
 }
 
-static bool lcd_selfcheck_axis_sg(char axis) {
+static bool lcd_selfcheck_axis_sg(unsigned char axis) {
 // each axis length is measured twice	
 	float axis_length, current_position_init, current_position_final;
 	float measured_axis_length[2];