From 07c28b5b10495fb483e51e8f0c69dd6d316d6962 Mon Sep 17 00:00:00 2001 From: Mats van Reenen Date: Sun, 31 Jan 2021 23:50:42 +0100 Subject: [PATCH] small bug fixes --- src/MPPT.h | 1 + src/spi.c | 2 +- src/spi.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MPPT.h b/src/MPPT.h index b5d8401..e4d7930 100644 --- a/src/MPPT.h +++ b/src/MPPT.h @@ -8,5 +8,6 @@ void mppt_start(); void mppt_deinit(); void mppt_setSetpointOverride(uint8_t vermogen); void mppt_setSetpoint(uint8_t vermogen); +uint8_t mppt_getVermogen(); #endif diff --git a/src/spi.c b/src/spi.c index 141e5bc..48ba573 100644 --- a/src/spi.c +++ b/src/spi.c @@ -3,7 +3,7 @@ #include "global.h" #include "debug.h" - +SPI_Handle *SPI_Handaler; SPI_Trans_t SPI_ADC; uint8_t ADC_TxBuf[4]; uint8_t ADC_RxBuf[4]; diff --git a/src/spi.h b/src/spi.h index 90cc060..d710b48 100644 --- a/src/spi.h +++ b/src/spi.h @@ -27,7 +27,6 @@ typedef struct SPI_Trans_t { SPI_Params params; uint_least8_t cs; } SPI_Trans_t; -SPI_Handle *SPI_Handaler; void SPI_Init(); uint16_t ADC_read(uint8_t ch);