![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2011
Diff: function_utilities/function_utilities.cpp
- Revision:
- 71:f80dc3970c99
- Parent:
- 70:3436ce769b1e
- Child:
- 86:d6e591bece22
diff -r 3436ce769b1e -r f80dc3970c99 function_utilities/function_utilities.cpp --- a/function_utilities/function_utilities.cpp Tue May 19 01:36:27 2020 +0000 +++ b/function_utilities/function_utilities.cpp Mon Jun 08 11:00:23 2020 +0000 @@ -382,7 +382,7 @@ { FlashWriter writer(6);//2부터 7까지 되는듯 아마 sector if (!writer.ready()) writer.open(); - +// BNO = 0; writer.write(RID_BNO,(int) BNO); // write at address, 쓸때도 4byte씩 씀 writer.write(RID_OPERATING_MODE,(int) OPERATING_MODE); writer.write(RID_SENSING_MODE, (int) SENSING_MODE); @@ -463,7 +463,6 @@ void ROM_CALL_DATA(void) { BNO = flashReadInt(Rom_Sector, RID_BNO); - BNO = 1; OPERATING_MODE = flashReadInt(Rom_Sector, RID_OPERATING_MODE); SENSING_MODE = flashReadInt(Rom_Sector, RID_SENSING_MODE); CURRENT_CONTROL_MODE = flashReadInt(Rom_Sector, RID_CURRENT_CONTROL_MODE); @@ -542,6 +541,8 @@ K_SPRING = flashReadInt(Rom_Sector, RID_K_SPRING); D_DAMPER = flashReadInt(Rom_Sector, RID_D_DAMPER); +// ROM_RESET_DATA(); + } /*******************************************************************************