Skip to content

Commit

Permalink
esp32-example-jkpb-rs485_1master_6slaves example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
txubelaxu committed Apr 9, 2024
1 parent 0a23a43 commit 9df7f4c
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 229 deletions.
40 changes: 0 additions & 40 deletions components/jk_rs485_sniffer/gpio.h_KKKKKKKK

This file was deleted.

5 changes: 3 additions & 2 deletions components/jk_rs485_sniffer/jk_rs485_sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,9 @@ uint8_t JkRS485Sniffer::manage_rx_buffer_(void) {
ESP_LOGV(TAG, "CHECKSUM failed! 0x%04X != 0x%04X", computed_checksum, remote_checksum);
//NO, OR THERE WAS A COMM. ERROR
} else {
ESP_LOGI(TAG, "REAL master is speaking (short request)");
address=raw[0];
ESP_LOGI(TAG, "REAL master is speaking to address 0x%02X (short request)",address);

this->rs485_network_node[0].last_message_received=now;
this->detected_master_activity_now();

Expand Down Expand Up @@ -527,8 +528,8 @@ uint8_t JkRS485Sniffer::manage_rx_buffer_(void) {
ESP_LOGV(TAG, "CHECKSUM failed! 0x%04X != 0x%04X", computed_checksum, remote_checksum);
//NO, OR THERE WAS A COMM. ERROR
} else {
ESP_LOGI(TAG, "REAL master is speaking (request)");
address=raw[0];
ESP_LOGI(TAG, "REAL master is speaking to address 0x%02X (request)",address);
this->rs485_network_node[0].last_message_received=now;
this->detected_master_activity_now();
this->set_node_availability(0,1);
Expand Down
Loading

0 comments on commit 9df7f4c

Please sign in to comment.