浏览代码

Fixed casting warning in sanguino

Erik van der Zalm 13 年前
父节点
当前提交
01d28c18ab
共有 2 个文件被更改,包括 13 次插入13 次删除
  1. 1
    1
      Marlin/Configuration.h
  2. 12
    12
      Marlin/Sanguino/cores/arduino/pins_arduino.c

+ 1
- 1
Marlin/Configuration.h 查看文件

@@ -51,7 +51,7 @@
51 51
 
52 52
 // Actual temperature must be close to target for this long before M109 returns success
53 53
 #define TEMP_RESIDENCY_TIME 10	// 30  // (seconds) 30 seconds was too long
54
-#define TEMP_HYSTERESIS 3       // (C) range of +/- temperatures considered "close" to the target one
54
+#define TEMP_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
55 55
 
56 56
 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
57 57
 // to check that the wiring to the thermistor is not broken. 

+ 12
- 12
Marlin/Sanguino/cores/arduino/pins_arduino.c 查看文件

@@ -67,28 +67,28 @@
67 67
 const uint8_t PROGMEM port_to_mode_PGM[] =
68 68
 {
69 69
 	NOT_A_PORT,
70
-    &DDRA,
71
-	&DDRB,
72
-	&DDRC,
73
-	&DDRD,
70
+	(uint8_t) &DDRA,
71
+	(uint8_t) &DDRB,
72
+	(uint8_t) &DDRC,
73
+	(uint8_t) &DDRD,
74 74
 };
75 75
 
76 76
 const uint8_t PROGMEM port_to_output_PGM[] =
77 77
 {
78 78
 	NOT_A_PORT,
79
-	&PORTA,
80
-	&PORTB,
81
-	&PORTC,
82
-	&PORTD,
79
+	(uint8_t) &PORTA,
80
+	(uint8_t) &PORTB,
81
+	(uint8_t) &PORTC,
82
+	(uint8_t) &PORTD,
83 83
 };
84 84
 
85 85
 const uint8_t PROGMEM port_to_input_PGM[] =
86 86
 {
87 87
 	NOT_A_PORT,
88
-	&PINA,
89
-	&PINB,
90
-	&PINC,
91
-	&PIND,
88
+	(uint8_t) &PINA,
89
+	(uint8_t) &PINB,
90
+	(uint8_t) &PINC,
91
+	(uint8_t) &PIND,
92 92
 };
93 93
 
94 94
 const uint8_t PROGMEM digital_pin_to_port_PGM[] =

正在加载...
取消
保存