From 77e75f4898004031f33d6e7eee236f41b17e66e1 Mon Sep 17 00:00:00 2001 From: Benjamin Vedder Date: Sun, 20 Feb 2022 00:43:36 +0100 Subject: [PATCH] Removed hw deinit as that encoder uses sw spi --- encoder/enc_ad2s1205.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/encoder/enc_ad2s1205.c b/encoder/enc_ad2s1205.c index bfa10d4c..a74d86a2 100644 --- a/encoder/enc_ad2s1205.c +++ b/encoder/enc_ad2s1205.c @@ -46,10 +46,6 @@ static float last_enc_angle = 0.0; void enc_ad2s1205_deinit(void) { spi_bb_deinit(&(AD2S1205_config_now.sw_spi)); -#ifdef HW_SPI_DEV - spiStop(&HW_SPI_DEV); -#endif - // TODO: (TO BE TESTED!!) DEINITIALIZE ALSO SAMPLE AND RDVEL #if defined(AD2S1205_SAMPLE_GPIO) palSetPadMode(AD2S1205_SAMPLE_GPIO, AD2S1205_SAMPLE_PIN, PAL_MODE_INPUT_PULLUP); // Prepare for a falling edge SAMPLE assertion