Removed hw deinit as that encoder uses sw spi

This commit is contained in:
Benjamin Vedder 2022-02-20 00:43:36 +01:00
parent 18d051a2a0
commit 77e75f4898
1 changed files with 0 additions and 4 deletions

View File

@ -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