From 8a95e249822dea54bb0ed61a20e6b9b5e3308959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noah=20Piqu=C3=A9?= Date: Tue, 22 Nov 2022 15:40:42 +0100 Subject: [PATCH] update raspi install and todo --- Core/Drivers/TEMP_Temperature.c | 3 +++ install_tec_raspi.txt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Core/Drivers/TEMP_Temperature.c b/Core/Drivers/TEMP_Temperature.c index 231b298..18d3faf 100644 --- a/Core/Drivers/TEMP_Temperature.c +++ b/Core/Drivers/TEMP_Temperature.c @@ -156,6 +156,9 @@ PRIVATE VOID vTask( PVOID arg ) { boOK &= ADCD_boReadData( ADCD_eHot, &error, &u16ADC_data[ADCD_eHot] ); boOK &= ADCD_boReadData( ADCD_eCold, &error, &u16ADC_data[ADCD_eCold] ); + + /** @todo call errorhandler if value == 0 */ + if( boOK ) { flTempData[ADCD_eHot] = flConvertADCData( u16ADC_data[ADCD_eHot] ); diff --git a/install_tec_raspi.txt b/install_tec_raspi.txt index a89dc91..ac2e952 100644 --- a/install_tec_raspi.txt +++ b/install_tec_raspi.txt @@ -3,11 +3,11 @@ Here few instructions to install the drivers for the communtications with the TE Add the following line to your /boot/config.txt file: dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000 - +sudo reboot pip3 install python-can ... for python module - -resetCAN.sh !!! +maybe edit permissions +./resetCAN.sh ... for starting can0 \ No newline at end of file