[PATCH 01/14] w1: fix w1_send_slave dropping a slave id

2013-12-28 Thread David Fries
Previous logic, if (avail > 8) { store slave; return; } send data; clear; The logic error is, if there isn't space send the buffer and clear, but the slave wasn't added to the now empty buffer loosing that slave id. It also should have been "if (avail >= 8)" because when it is 8,

[PATCH 01/14] w1: fix w1_send_slave dropping a slave id

2013-12-28 Thread David Fries
Previous logic, if (avail 8) { store slave; return; } send data; clear; The logic error is, if there isn't space send the buffer and clear, but the slave wasn't added to the now empty buffer loosing that slave id. It also should have been if (avail = 8) because when it is 8,