Skip to content

Commit f88c758

Browse files
committed
Fixed linter errors
1 parent 4c0d706 commit f88c758

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main_ethernet_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const IPAddress receive_ip(192, 168, 1, 31); // receiver
2121
const IPAddress default_dns(192, 168, 1, 1);
2222
const IPAddress default_gateway(192, 168, 1, 1);
2323
const IPAddress car_subnet(255, 255, 255, 0);
24-
uint16_t port1 = 4444;
25-
uint16_t port2 = 5555;
24+
const uint16_t PORT1 = 4444;
25+
const uint16_t PORT2 = 5555;
2626
//hytech_msgs_VCRData_s msg = hytech_msgs_VCRData_s_init_zero;
2727
VCRData_s vcr_state;
2828
//hytech_msgs_VCRData_s msg = {};
@@ -33,14 +33,14 @@ VCRData_s vcr_state;
3333
void init_ethernet_device()
3434
{
3535
Ethernet.begin(default_VCR_ip, default_dns, default_gateway, car_subnet);
36-
socket.begin(4444);
36+
socket.begin(PORT1);
3737
//recv_socket.begin(5555);
3838
}
3939

4040
void test_send()
4141
{
4242
hytech_msgs_VCRData_s msg = VCREthernetInterface::make_vcr_data_msg(vcr_state);
43-
if (handle_ethernet_socket_send_pb<hytech_msgs_VCRData_s, hytech_msgs_VCRData_s_size>(receive_ip, port1, &socket, msg, &hytech_msgs_VCRData_s_msg)) {
43+
if (handle_ethernet_socket_send_pb<hytech_msgs_VCRData_s, hytech_msgs_VCRData_s_size>(receive_ip, PORT1, &socket, msg, &hytech_msgs_VCRData_s_msg)) {
4444
Serial.println("Sent");
4545
} else {
4646
Serial.println("Failed");

test/test_systems/test_systems.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <gtest/gtest.h>
22
#include <gmock/gmock.h>
33
#include "test_scheduler.h"
4-
#include "test_tcmux.h"
4+
// #include "test_tcmux.h"
55
#include "test_buzzer.h"
66
#include "test_watchdog.h"
77

0 commit comments

Comments
 (0)