Skip to content

Commit 41f3867

Browse files
committed
bracket a if
1 parent e414d37 commit 41f3867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sfTk/sfDevFPC2534I2C.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ uint16_t sfDevFPC2534I2C::read(uint8_t *data, size_t len)
172172

173173
// Was there an error
174174
if (dataAvailable == 0)
175+
{
175176
return FPC_RESULT_IO_BAD_DATA; // error
177+
}
176178

177179
// okay, add this data to our internal buffer
178180
if (fifo_enqueue(tempBuffer, (size_t)dataAvailable) == false)

0 commit comments

Comments
 (0)