summaryrefslogtreecommitdiff
path: root/avr/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/main.c')
-rw-r--r--avr/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/avr/main.c b/avr/main.c
index 15d98d3..f79853e 100644
--- a/avr/main.c
+++ b/avr/main.c
@@ -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;