Skip to content

Commit

Permalink
More coverity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikZalm committed May 15, 2014
1 parent 88b4946 commit cfb98ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit cfb98ef

Please sign in to comment.