Fix sensor address and manf. ID.

This commit is contained in:
iabdalkader 2020-02-09 18:48:35 +02:00
parent 6543938f14
commit 3a7dd95ecc
2 changed files with 2 additions and 4 deletions

View File

@ -333,8 +333,6 @@ int sensor_init()
#if (OMV_SENSOR_HM01B0 == 1)
case HM01B0_SLV_ADDR:
cambus_readb2(sensor.slv_addr, HIMAX_CHIP_ID, &sensor.chip_id);
// TODO fix when manf. ID is known.
sensor.chip_id = HM01B0_ID;
break;
#endif //(OMV_SENSOR_HM01B0 == 1)
default:

View File

@ -19,7 +19,7 @@
#define MT9V034_SLV_ADDR (0xB8)
#define LEPTON_SLV_ADDR (0x54)
#define OV5640_SLV_ADDR (0x78)
#define HM01B0_SLV_ADDR (0x48)
#define HM01B0_SLV_ADDR (0x24)
// Chip ID registers.
#define OV_CHIP_ID (0x0A)
@ -33,7 +33,7 @@
#define OV5640_ID (0x56)
#define MT9V034_ID (0x13)
#define LEPTON_ID (0x54)
#define HM01B0_ID (0xAA) // TODO fix this with valid manf. ID.
#define HM01B0_ID (0xB0)
typedef enum {
PIXFORMAT_INVALID = 0,