Solved
AS5047 SPI live expression not updating

I'm writing a code for getting angle from a AS5047u magentic encoder to get the angle but the value from the angle not seems to be updating in the live expressions

I'm writing a code for getting angle from a AS5047u magentic encoder to get the angle but the value from the angle not seems to be updating in the live expressions
uint16_t spi_RX=0;
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET);
HAL_SPI_Transmit(&hspi1, (uint8_t*) &COMMAND, 1, 100);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET);
HAL_Delay(1);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_RESET);
HAL_SPI_Receive(&hspi1, (uint8_t*) &spi_RX, 1, 100);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_4, GPIO_PIN_SET);
uint16_t ANGLEUNC = spi_RX & 0x3FFF;
enc.m_angle = (float)ANGLEUNC * (360.0f / 16383.0f);
enc.spi_RX = AS5047U_ANGLECOM;this is the code that worked for me if you're using AS5047 you should receive the data in the second call
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.