updated for datenlogger needs

This commit is contained in:
lars
2024-02-23 16:49:22 +01:00
parent 15d53829d7
commit 210f527973
2 changed files with 8 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ namespace sta {
// Forward declaration
uint16_t uint_8BufferTouint16_t(uint8_t* buffer);
MS5607::MS5607(SpiDevice* device, OsrLevel level) {
MS5607::MS5607(STM32SPIDevice* device, OsrLevel level) {
this->device_ = device;
this->osr_ = level;
this->lastPresVal = -1;
@@ -161,7 +161,7 @@ namespace sta {
this->device_->beginTransmission();
this->device_->transfer(MS5607::Operations::RESET);
this->device_->endTransmission();
delayUs(MS5607::RESET_DELAY);
delayMs(MS5607::RESET_DELAY*0.001);
}
// Read all constants from the PROM
@@ -220,4 +220,4 @@ namespace sta {
uint16_t uint_8BufferTouint16_t(uint8_t* buffer) {
return (buffer[0] << 8) | buffer[1];
}
}
}