Skip to content

Commit

Permalink
修正关闭测试宏的编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan committed Dec 11, 2018
1 parent 91f862b commit 1dfcb7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/AT45DB161D.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@ uint8_t AT45_ReadByte(void)

uint8_t AT45_ReadStatus(void)
{
uint8_t data;
AT_CS_ASSERT
AT45_Writebyte(AT_STATUS_REG_READ);
at45_status_reg = AT45_ReadByte();
data = AT45_ReadByte();
AT_CS_DEASSERT
return (at45_status_reg);
#if (AT45_TEST)
at45_status_reg = data;
#endif
return (data);
}

uint8_t AT45_IsBusy(void)
Expand Down
Binary file modified bin/Project.abs
Binary file not shown.

0 comments on commit 1dfcb7f

Please sign in to comment.