Skip to content

Commit

Permalink
clean debugf
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed Mar 11, 2024
1 parent a29d2c1 commit fc12255
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,20 @@ void camera_mode_detect(uint8_t init) {

Set_720P60_8bit(0);

#ifdef _DEBUG_MODE
debugf("\r\nchipID");
#endif
id = I2C_Read8(ADDR_TP9950, 0xfe);
#ifdef _DEBUG_MODE
debugf("\r\n fe:%2x", id);
#endif

id = I2C_Read8(ADDR_TP9950, 0xff);
#ifdef _DEBUG_MODE
debugf("\r\n ff:%2x\r\n", id);
#endif
WAIT(200);

debugf("\r\nCamDetect");
I2C_Write8(ADDR_TP9950, 0x26, 0x01);
I2C_Write8(ADDR_TP9950, 0x07, 0xC0);
I2C_Write8(ADDR_TP9950, 0x0B, 0xC0);
Expand Down

0 comments on commit fc12255

Please sign in to comment.