older compiler - do not use for loops with variable decalaration

pull/13/merge
Robert-B 2017-03-01 12:41:41 +01:00 committed by Olivier Martin
parent 15ab7a84d2
commit 5b76fada47
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@
gatt_connection_t* m_connection;
void notification_cb(uint16_t handle, const uint8_t* data, size_t data_length, void* user_data) {
for(int i = 0; i < data_length; i++) {
int i;
for(i = 0; i < data_length; i++) {
printf("%c", data[i]);
}
}