projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spieler splodiert.
[hackover2013-badge-firmware.git]
/
drivers
/
sensors
/
lm75b
/
lm75b.c
diff --git
a/drivers/sensors/lm75b/lm75b.c
b/drivers/sensors/lm75b/lm75b.c
index
d5633d9
..
ca4d742
100644
(file)
--- a/
drivers/sensors/lm75b/lm75b.c
+++ b/
drivers/sensors/lm75b/lm75b.c
@@
-87,8
+87,6
@@
extern volatile uint8_t I2CMasterBuffer[I2C_BUFSIZE];
extern volatile uint8_t I2CSlaveBuffer[I2C_BUFSIZE];
extern volatile uint32_t I2CReadLength, I2CWriteLength;
extern volatile uint8_t I2CSlaveBuffer[I2C_BUFSIZE];
extern volatile uint32_t I2CReadLength, I2CWriteLength;
-uint32_t i;
-
static bool _lm75bInitialised = false;
/**************************************************************************/
static bool _lm75bInitialised = false;
/**************************************************************************/
@@
-99,6
+97,7
@@
static bool _lm75bInitialised = false;
lm75bError_e lm75bWrite8 (uint8_t reg, uint32_t value)
{
// Clear write buffers
lm75bError_e lm75bWrite8 (uint8_t reg, uint32_t value)
{
// Clear write buffers
+ uint32_t i;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;
@@
-121,6
+120,7
@@
lm75bError_e lm75bWrite8 (uint8_t reg, uint32_t value)
lm75bError_e lm75bRead16(uint8_t reg, int32_t *value)
{
// Clear write buffers
lm75bError_e lm75bRead16(uint8_t reg, int32_t *value)
{
// Clear write buffers
+ uint32_t i;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;
for ( i = 0; i < I2C_BUFSIZE; i++ )
{
I2CMasterBuffer[i] = 0x00;
This page took
0.025748 seconds
and
4
git commands to generate.