mirror of https://github.com/labapart/gattlib
older compiler - do not use for loops with variable decalaration
parent
15ab7a84d2
commit
5b76fada47
|
@ -34,7 +34,8 @@
|
||||||
gatt_connection_t* m_connection;
|
gatt_connection_t* m_connection;
|
||||||
|
|
||||||
void notification_cb(uint16_t handle, const uint8_t* data, size_t data_length, void* user_data) {
|
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]);
|
printf("%c", data[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue