Updated IBUS variant

- separated the implementation from USART implementation for more clarity
- fixed warnings
- minor visual updates
This commit is contained in:
EmanuelFeru
2020-01-08 19:16:34 +01:00
parent c3a40f6454
commit d2c846cda9
4 changed files with 73 additions and 58 deletions

View File

@@ -112,8 +112,6 @@ void Nunchuck_Read(void) {
HAL_Delay(3);
if (HAL_I2C_Master_Receive(&hi2c2,0xA4,(uint8_t*)nunchuck_data, 6, 10) == HAL_OK) {
timeout = 0;
} else {
timeout++;
}
#ifndef TRANSPOTTER