Mercurial > public > ostc4
comparison Small_CPU/Src/stm32f4xx_hal_msp_v3.c @ 277:580822b5d3d1 IPC_Sync_Improvment_3
Rework SPI error handling.
SPI_Start_single_TxRx_with_Master evaluated the incoming data for a condition to send device instead of life data. In case of invalid input data this may cause unintended transmission of device data => now lifedata is send if incoming data is expected to be invalid
The SPI timeout monitoring was done at the beginning of the mode loop. A timeout may have been detected even if meanwhile valid data was received (this is evaluated at x20ms) => Moved the timeout monitoring after the handling of incoming data
author | ideenmodellierer |
---|---|
date | Sun, 28 Apr 2019 10:16:38 +0200 |
parents | 5f11787b4f42 |
children | abec171c2c4b |
comparison
equal
deleted
inserted
replaced
276:8e9c502c0b06 | 277:580822b5d3d1 |
---|