diff options
author | Florian Jung <flo@windfisch.org> | 2016-01-24 23:10:24 +0100 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2016-01-24 23:10:24 +0100 |
commit | ed35d40a612633c3545a6cd7e59e3e432c623dfc (patch) | |
tree | e0bb7619ad1f7da7c33523e0b74e4b542c1eeead /avr/main.c | |
parent | 07ce2df5da6265702e1d99556f46139f8b5b8611 (diff) |
actually commit the write
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; |