Correction de la lib car erreur de format dans les calculs
Diff: MS5803.cpp
- Revision:
- 1:a1f3bd291a0c
- Parent:
- 0:d558dda1e821
- Child:
- 3:77cf75d8a6ce
--- a/MS5803.cpp Thu Jul 24 04:19:39 2014 +0000 +++ b/MS5803.cpp Thu Jul 24 04:47:54 2014 +0000 @@ -17,10 +17,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * Barometer Sensor (Altimeter) MS5803-01BA of MEAS Switzerland (www.meas-spec.com). - * The driver uses I2C mode (sensor PS pin low). - * Other types of MEAS are compatible but not tested. - * Written by Raig Kaufer distribute freely! + * Library for Pressure Sensors of type MS5803-x of MEAS Switzerland (www.meas-spec.com). + * The driver uses I2C mode (sensor's Protocol Select (PS) pin pulled to high). + * MS5803-01BA was successfully tested by Raig Kaufer. + * MS5803-14BA (Underwater Pressure Sensor 14 bar) was successfully tested by Robert Katzschmann + * Other types of MEAS are compatible but not tested + * Written by Raig Kaufer, distribute freely! + * Revised by Robert Katzschmann */ #include <stdlib.h> @@ -36,7 +39,7 @@ /* transmit out 1 byte reset command */ ms5803_tx_data[0] = ms5803_reset; if ( i2c.write( device_address, ms5803_tx_data, 1 ) ); - printf('send soft reset'); + printf("send soft reset"); wait_ms(20); }