Change from 16 to 24 Byte Config Code
[owSlave2.git] / common / OWRomFunctions.s
index 30731e7..fb1d85b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) 2015, Tobias Mueller tm(at)tm3d.de\r
+// Copyright (c) 2017, Tobias Mueller tm(at)tm3d.de\r
 // All rights reserved. \r
 // \r
 // Redistribution and use in source and binary forms, with or without \r
@@ -314,16 +314,16 @@ h_readrom_all:
 ;---------------------------------------------------\r
 \r
 h_fwconfiginfo:\r
-       cpi  r_bytep,16\r
+       cpi  r_bytep,24\r
        breq h_fwconfiginfo_crc\r
 #ifdef _CRC8_\r
-       cpi  r_bytep,17\r
+       cpi  r_bytep,25\r
        breq h_fwconfiginfo_all\r
 #elif defined _CRC16_\r
-       cpi  r_bytep,18\r
+       cpi  r_bytep,26\r
        breq h_fwconfiginfo_all\r
 #else\r
-       cpi  r_bytep,16\r
+       cpi  r_bytep,25\r
        breq h_fwconfiginfo_all\r
 #warning No CRC known code implemented\r
 #endif\r
@@ -338,10 +338,10 @@ h_fwconfiginfo_crc:
 #elif defined _CRC16_\r
        lds r_temp,crc\r
        com r_temp\r
-       sts config_info+16,r_temp\r
+       sts config_info+24,r_temp\r
        lds r_temp,crc+1\r
        com r_temp\r
-       sts config_info+17,r_temp\r
+       sts config_info+25,r_temp\r
        rjmp h_fwconfiginfo_end\r
 #endif\r
 h_fwconfiginfo_all:\r