diff options
| author | Aditya Naik | 2020-04-03 19:32:23 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-04-03 19:32:23 -0400 |
| commit | 3e9d2f9106bddbe5ac7973104e75ee98b11c7518 (patch) | |
| tree | 67c4024010df38fda2fffd08680a6d6b6c60ddc5 | |
| parent | a3e8a8f40f8516b7d304840e7df980f7af6ac891 (diff) | |
MDR received without errors
| -rw-r--r-- | Src/main-hs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Src/main-hs.c b/Src/main-hs.c index 3350135..da59036 100644 --- a/Src/main-hs.c +++ b/Src/main-hs.c @@ -124,8 +124,7 @@ int main(void) /* Handshake variables */ uint8_t hs_sts = IDLE; uint8_t debug_buf[128], term[] = "\r\n"; - uint8_t *MDR_req_buf, *MDR_ACK_buf, *MDR_CTS_buf;/* , *MDR_buf; */ - uint8_t MDR_buf[256]; + uint8_t *MDR_req_buf, *MDR_ACK_buf, *MDR_CTS_buf, *MDR_buf; uint32_t AF_error_counter = 0; size_t MDR_req_size, MDR_CTS_size; @@ -252,7 +251,7 @@ int main(void) } case (HS_MDR_MDR): { - /* MDR_buf = (uint8_t*)malloc(MDR_len); */ + MDR_buf = (uint8_t*)malloc(MDR_len); HAL_GPIO_TogglePin(led_GPIO_Port, led_Pin); AF_error_counter = 0; while (HAL_I2C_Master_Receive(&hi2c1, (uint8_t)I2C_ADDRESS, |
