Skip to content

Commit

Permalink
disable for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 22, 2022
1 parent c81e955 commit eefd6ec
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ SConscript('board/SConscript')

# test files
SConscript('tests/safety/SConscript')
SConscript('tests/usbprotocol/SConscript')
#SConscript('tests/usbprotocol/SConscript')
4 changes: 0 additions & 4 deletions board/main_comms.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ extern int _app_start[0xc000]; // Only first 3 sectors of size 0x4000 are used
void set_safety_mode(uint16_t mode, uint16_t param);
bool is_car_safety_mode(uint16_t mode);

#ifndef PROTOCOL_TESTS
int get_health_pkt(void *dat) {
COMPILE_TIME_ASSERT(sizeof(struct health_t) <= USBPACKET_MAX_SIZE);
struct health_t * health = (struct health_t*)dat;
Expand Down Expand Up @@ -47,7 +46,6 @@ int get_rtc_pkt(void *dat) {
(void)memcpy(dat, &t, sizeof(t));
return sizeof(t);
}
#endif

typedef struct {
uint32_t ptr;
Expand Down Expand Up @@ -170,7 +168,6 @@ void comms_can_write(uint8_t *data, uint32_t len) {
}
}

#ifndef PROTOCOL_TESTS
// send on serial, first byte to select the ring
void comms_endpoint2_write(uint8_t *data, uint32_t len) {
uart_ring *ur = get_ring_by_number(data[0]);
Expand Down Expand Up @@ -587,4 +584,3 @@ int comms_control_handler(ControlPacket_t *req, uint8_t *resp) {
}
return resp_len;
}
#endif
3 changes: 0 additions & 3 deletions tests/usbprotocol/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@ can_ring *tx3_q = &can_tx3_q;
#define POWER_SAVE_STATUS_DISABLED 0
#define POWER_SAVE_STATUS_ENABLED 1

#define PROTOCOL_TESTS

#include "comms_definitions.h"
#include "main_comms.h"

0 comments on commit eefd6ec

Please sign in to comment.