Handle fucked slave EEPROMs
This commit is contained in:
		@ -18,6 +18,7 @@ void can_init(CAN_HandleTypeDef *handle) {
 | 
			
		||||
  ftcan_add_filter(CAN_ID_AMS_IN, 0xFFF);
 | 
			
		||||
  ftcan_add_filter(CAN_ID_SLAVE_PANIC, 0xFFF);
 | 
			
		||||
  ftcan_add_filter(CAN_ID_SLAVE_STATUS_BASE, 0xFF0);
 | 
			
		||||
  ftcan_add_filter(CAN_ID_SLAVE_STATUS_FUCKED, 0xFFF);
 | 
			
		||||
  ftcan_add_filter(CAN_ID_SLAVE_LOG, 0xFFF);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -50,6 +51,8 @@ void ftcan_msg_received_cb(uint16_t id, size_t datalen, const uint8_t *data) {
 | 
			
		||||
  } else if ((id & 0xFF0) == CAN_ID_SLAVE_STATUS_BASE) {
 | 
			
		||||
    slaves_handle_status(data);
 | 
			
		||||
    return;
 | 
			
		||||
  } else if (id == CAN_ID_SLAVE_STATUS_FUCKED) {
 | 
			
		||||
    slaves_handle_status(data);
 | 
			
		||||
  }
 | 
			
		||||
  switch (id) {
 | 
			
		||||
  case CAN_ID_SLAVE_PANIC:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user