Project

General

Profile

Revision 48418a96

ID48418a96b4da367d8a556f57780fa1410d371a89
Parent b99ee462
Child e92b8d00

Added by Thomas Mullins about 10 years ago

Fixes to BOM bootloader. Works now!!! YAAAAAY

View differences:

scout_avr/bom/tiny-twi-sync.c
6 6
#define SDA PB0
7 7
#define SCL PB2
8 8

  
9
#define RECV_BUF_SIZE 100
10
#define SEND_BUF_SIZE 100
9
#define RECV_BUF_SIZE 70
10
#define SEND_BUF_SIZE 30
11 11

  
12 12
uint8_t address;
13 13

  
......
139 139
}
140 140

  
141 141
static void twi_on_stop(void) {
142
  onDataRecieved(recv_data, recv_idx);
143
  twi_ready();
142
  if (state == RECV_DATA) {
143
    onDataRecieved(recv_data, recv_idx);
144
    twi_ready();
145
  }
144 146
}
145 147

  
146 148
void smb_init(slave_rx_t callback) {

Also available in: Unified diff