MKFirmware / MarlinKimbra4due

MK4due firmware for Arduino DUE
22 stars 14 forks source link

Max6675 not work #28

Closed Drakelive closed 8 years ago

Drakelive commented 8 years ago

Hi MagoKimbra

With the latest Commit disappeared HAL::spiBegin() in read_max6675 function. A question: is correct that spiBegin and spiInit are performed every time you read the temperature? (read_max6675)

Drakelive

giutrec commented 8 years ago

Hi Drakelive, The disappared HAL::spiBegin() in read_max6675 function is not only problem for SPI work, the function HAL::spiReceive ();became HAL::spiReceive (0); and it not works with channel zero, because SPI_CHAN pin is defined according to pin SDSS ( and it is defined on boards pin config files) on pins.h. See line later 306 and 320 on HAL.cpp I just think it was an oversight of MagoKimbra because it was a fix already applied.