Mercurial > public > hwos_code
diff src/i2c.asm @ 235:23311219dacc
under construction: new hardware_flag to configure different hardware versions
author | heinrichsweikamp |
---|---|
date | Wed, 25 Feb 2015 16:49:59 +0100 |
parents | 4147cd5c0c8e |
children | 653a3ab08062 |
line wrap: on
line diff
--- a/src/i2c.asm Wed Feb 25 13:57:30 2015 +0100 +++ b/src/i2c.asm Wed Feb 25 16:49:59 2015 +0100 @@ -403,14 +403,14 @@ global lt2942_get_status lt2942_get_status: ; Read status register - bcf cr_hardware ; Clear flag + bcf rechargeable ; Clear flag clrf i2c_temp movlw 0x00 ; Point to Status reg call I2C_TX_GAUGE call I2C_RX_GAUGE movff SSP1BUF,WREG btfss WREG,7 ; 2942 found? - bsf cr_hardware ; Yes, set flag + bsf rechargeable ; Yes, set flag bsf SSP1CON2,PEN ; Stop condition rcall WaitMSSP return