Revision fa11365c
Arbitrary length i2c test
scout_avr/bom/test.c | ||
---|---|---|
6 | 6 |
|
7 | 7 |
|
8 | 8 |
static void slave_rx(uint8_t *buf, int len) { |
9 |
if (len >= 3) {
|
|
9 |
if (len > 1) {
|
|
10 | 10 |
switch (buf[0]) { |
11 | 11 |
case BOM_I2C_SEND: |
12 | 12 |
smb_send_data(buf, len); |
Also available in: Unified diff