X-Git-Url: http://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FOWRomFunctions.s;fp=common%2FOWRomFunctions.s;h=fb1d85bd1ce07f4bf369aa62817653140b4221d1;hp=30731e75aba5ed94455ebe4a87a8cf427967b2f4;hb=22b81b6c288ca56f58d064627c310e437f9453a4;hpb=b57c0ca6b523661b0d4e4a0bfb3626df890dfb99 diff --git a/common/OWRomFunctions.s b/common/OWRomFunctions.s index 30731e7..fb1d85b 100644 --- a/common/OWRomFunctions.s +++ b/common/OWRomFunctions.s @@ -1,4 +1,4 @@ -// Copyright (c) 2015, Tobias Mueller tm(at)tm3d.de +// Copyright (c) 2017, Tobias Mueller tm(at)tm3d.de // All rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -314,16 +314,16 @@ h_readrom_all: ;--------------------------------------------------- h_fwconfiginfo: - cpi r_bytep,16 + cpi r_bytep,24 breq h_fwconfiginfo_crc #ifdef _CRC8_ - cpi r_bytep,17 + cpi r_bytep,25 breq h_fwconfiginfo_all #elif defined _CRC16_ - cpi r_bytep,18 + cpi r_bytep,26 breq h_fwconfiginfo_all #else - cpi r_bytep,16 + cpi r_bytep,25 breq h_fwconfiginfo_all #warning No CRC known code implemented #endif @@ -338,10 +338,10 @@ h_fwconfiginfo_crc: #elif defined _CRC16_ lds r_temp,crc com r_temp - sts config_info+16,r_temp + sts config_info+24,r_temp lds r_temp,crc+1 com r_temp - sts config_info+17,r_temp + sts config_info+25,r_temp rjmp h_fwconfiginfo_end #endif h_fwconfiginfo_all: