Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from PopcornComputer/fix_missing_paratheses_in_…
Browse files Browse the repository at this point in the history
…if_statement

add missing if parentheses causing compilation failure
  • Loading branch information
ayushev authored Aug 5, 2021
2 parents f246420 + 8659561 commit 5f36cb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ $(APPS): %: $(OBJECTS) $(INCSSRC) %.o
@cp $@ bin/.

$(OBJECTS): %.o: %.$(SRCEXT) $(INCSSRC)
@echo "+++++++ Genrating dependencies for $< "
@echo "+++++++ Generating dependencies for $< "
@$(CC) $(CFLAGS) $< -o $@

%.o: %.$(SRCEXT) $(INCSSRC)
@echo "------- Genrating application objects for $< "
@echo "------- Generating application objects for $< "
@$(CC) $(CFLAGS) $< -o $@

.Phony : clean
Expand Down
6 changes: 6 additions & 0 deletions lib/interface/TrustX_Interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ uint16_t trustX_Reg_Write(uint8_t reg, uint8_t *pData, uint16_t dataLen)
{
ret = trustX_I2C_Write(pBuffer, dataLen+1);
if (ret != INTERFACE_SUCCESS)
{
DEBUGPRINTINTERFACE(".");
}
else
{
break;
Expand Down Expand Up @@ -220,7 +222,9 @@ uint16_t trustX_Reg_Read(uint8_t reg, uint8_t *pData, uint16_t *dataLen)
{
ret = trustX_I2C_Write(pBuffer, 1);
if (ret != INTERFACE_SUCCESS)
{
DEBUGPRINTINTERFACE(".");
}
else
{
DEBUGPRINTINTERFACE("Command sended.\n");
Expand All @@ -235,7 +239,9 @@ uint16_t trustX_Reg_Read(uint8_t reg, uint8_t *pData, uint16_t *dataLen)
{
ret = trustX_I2C_Read(pData, bufLen);
if(ret != INTERFACE_SUCCESS)
{
DEBUGPRINTINTERFACE(".");
}
else
{
*dataLen = bufLen;
Expand Down

0 comments on commit 5f36cb6

Please sign in to comment.