mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-10-08 08:57:52 +00:00
Code comments
This commit is contained in:
@@ -312,8 +312,8 @@ static void display_chip_temperature () {
|
|||||||
void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_len) {
|
void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_len) {
|
||||||
|
|
||||||
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;
|
rc_x = buf.x_axis; // Save x-axis value
|
||||||
rc_y = buf.y_axis;
|
rc_y = buf.y_axis; // s
|
||||||
update_pwm(rc_x, rc_y);
|
update_pwm(rc_x, rc_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user