More coverity fixes

This commit is contained in:
Erik van der Zalm 2014-05-15 22:09:50 +02:00
parent 88b494678f
commit cfb98ef682
3 changed files with 4 additions and 1 deletions

View file

@ -2468,7 +2468,7 @@ void process_commands()
if(pin_state >= -1 && pin_state <= 1){
for(int8_t i = 0; i < (int8_t)sizeof(sensitive_pins); i++)
for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(int)); i++)
{
if (sensitive_pins[i] == pin_number)
{

View file

@ -609,6 +609,7 @@ static float analog2temp(int raw, uint8_t e) {
SERIAL_ERROR((int)e);
SERIAL_ERRORLNPGM(" - Invalid extruder number !");
kill();
return 0.0;
}
#ifdef HEATER_0_USES_MAX6675
if (e == 0)

View file

@ -1,6 +1,8 @@
==========================
Marlin 3D Printer Firmware
==========================
[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
Marlin has a GPL license because I believe in open development.
Please do not use this code in products (3D printers, CNC etc) that are closed source or are crippled by a patent.