suppress warnings

This commit is contained in:
esenapaj
2016-03-15 06:34:02 +09:00
parent 21be07a6f6
commit 8de7a6f9b1
2 changed files with 3 additions and 3 deletions

View File

@ -4114,7 +4114,7 @@ inline void gcode_M140() {
* F<fan speed>
*/
inline void gcode_M145() {
uint8_t material = code_seen('S') ? code_value_short() : 0;
int8_t material = code_seen('S') ? code_value_short() : 0;
if (material < 0 || material > 1) {
SERIAL_ERROR_START;
SERIAL_ERRORLNPGM(MSG_ERR_MATERIAL_INDEX);