mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-ms56xx.git
synced 2025-09-28 22:37:33 +00:00
updated for datenlogger needs
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user