Skip to content

Starting slave mode uses incorrect type in function call #4

@ryedwards

Description

@ryedwards

Investigating why loading my slave data table is not triggering responses. I found the following in the code:

In lin_slcan.c:

t_master_frame_table_item master_frame_table[MAX_SLAVES_COUNT];
.
.
.
//start sending
if (line[1] == '1'){
  if (lin_type == LIN_SLAVE)
    	{
    		open_lin_net_init(master_frame_table,master_frame_table_size);
    	} else {
			open_lin_master_dl_init(master_frame_table,master_frame_table_size);
    		 //wakeUpLin();
    	}
        slcan_state = SLCAN_STATE_OPEN;
        return 1;

Issue is that open_lin_init is expecting

void open_lin_net_init(open_lin_frame_slot_t *a_slot_array, l_u8 a_slot_array_len) 

Going to try and fix the issue myself but wondering if there was a reason for using a different type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions