diff options
Diffstat (limited to 'avr/main.c')
-rw-r--r-- | avr/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -212,6 +212,19 @@ int main(void) goto write_failed; } + result = w1_reset(); + if (result != 0) + { + replyBuffer[0] = 0x03; + error = 1; + goto write_failed; + } + + // commit the write + ds1992_scratch_copy(writepos, es_reg); + + + replyBuffer[0] = 0xFF; // success error = 0; |