@@ -227,7 +227,7 @@ ACS37800ERR ACS37800::setI2Caddress(uint8_t newAddress)
227
227
}
228
228
229
229
// Set the number of samples for RMS calculations. Bypass_N_Enable must be set/true for this to have effect.
230
- ACS37800ERR ACS37800::setNumberOfSamples (uint32_t numberOfSamples, boolean _eeprom)
230
+ ACS37800ERR ACS37800::setNumberOfSamples (uint32_t numberOfSamples, bool _eeprom)
231
231
{
232
232
ACS37800ERR error = writeRegister (ACS37800_CUSTOMER_ACCESS_CODE, ACS37800_REGISTER_VOLATILE_2F); // Set the customer access code
233
233
@@ -353,7 +353,7 @@ ACS37800ERR ACS37800::getNumberOfSamples(uint32_t *numberOfSamples)
353
353
}
354
354
355
355
// Set/Clear the Bypass_N_Enable flag
356
- ACS37800ERR ACS37800::setBypassNenable (boolean bypass, boolean _eeprom)
356
+ ACS37800ERR ACS37800::setBypassNenable (bool bypass, bool _eeprom)
357
357
{
358
358
ACS37800ERR error = writeRegister (ACS37800_CUSTOMER_ACCESS_CODE, ACS37800_REGISTER_VOLATILE_2F); // Set the customer access code
359
359
@@ -466,7 +466,7 @@ ACS37800ERR ACS37800::setBypassNenable(boolean bypass, boolean _eeprom)
466
466
}
467
467
468
468
// // Read and return the bypass_n_en flag from shadow memory
469
- ACS37800ERR ACS37800::getBypassNenable (boolean *bypass)
469
+ ACS37800ERR ACS37800::getBypassNenable (bool *bypass)
470
470
{
471
471
ACS37800_REGISTER_0F_t store;
472
472
ACS37800ERR error = readRegister (&store.data .all , ACS37800_REGISTER_SHADOW_1F); // Read register 1F
@@ -487,7 +487,7 @@ ACS37800ERR ACS37800::getBypassNenable(boolean *bypass)
487
487
_debugPort->println (store.data .bits .bypass_n_en );
488
488
}
489
489
490
- *bypass = (boolean )store.data .bits .bypass_n_en ; // Return bypass_n_en
490
+ *bypass = (bool )store.data .bits .bypass_n_en ; // Return bypass_n_en
491
491
492
492
return (error);
493
493
}
@@ -844,7 +844,7 @@ ACS37800ERR ACS37800::readInstantaneous(float *vInst, float *iInst, float *pInst
844
844
return (error); // Bail
845
845
}
846
846
847
- // Extract pinstant as signed int. Convert to VAR
847
+ // Extract pinstant as signed int. Convert to W
848
848
// pinstant as actually int16_t but is stored in a uint32_t as a 16-bit bitfield
849
849
signedUnsigned.unSigned = pstore.data .bits .pinstant ;
850
850
float power = (float )signedUnsigned.Signed ;
0 commit comments