mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-24 15:07:52 +00:00
Code comments
This commit is contained in:
@@ -313,7 +313,7 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_
|
|||||||
|
|
||||||
memcpy(&buf, data, sizeof(buf)); // Write buffer into the struct
|
memcpy(&buf, data, sizeof(buf)); // Write buffer into the struct
|
||||||
rc_x = buf.x_axis; // Save joystic x-axis value
|
rc_x = buf.x_axis; // Save joystic x-axis value
|
||||||
rc_y = buf.y_axis; // Save y-axis value
|
rc_y = buf.y_axis; // Save joystic y-axis value
|
||||||
update_pwm(rc_x, rc_y);
|
update_pwm(rc_x, rc_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user