Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Diff: examples/drvdiag/driver_wrapper/cn0216_diag.cpp
- Revision:
- 17:b8356808e8ad
- Parent:
- 13:66c8e4ce4ff1
--- a/examples/drvdiag/driver_wrapper/cn0216_diag.cpp Fri Apr 29 17:16:55 2016 +0300
+++ b/examples/drvdiag/driver_wrapper/cn0216_diag.cpp Fri Apr 29 17:34:07 2016 +0300
@@ -16,16 +16,16 @@
void CN0216_Diag::init(void)
{
uint16_t weight = strtol(cmdbuffer[1].c_str(), NULL, 10);
- pc.printf("CN0216 initialized with %d calibration weight",weight);
+ pc.printf("CN0216 initialized with %d calibration weight", weight);
dut.init(weight);
}
void CN0216_Diag::calibrate(void)
{
uint8_t step = strtol(cmdbuffer[1].c_str(), NULL, 16);
- pc.printf("Calibrating step %d ..",step);
+ pc.printf("Calibrating step %d ..", step);
dut.calibrate(static_cast<CN0216::CalibrationStep_t>(step));
- pc.printf(".. DONE",step);
+ pc.printf(".. DONE", step);
}
void CN0216_Diag::read_weight(void)
CN0357 - Toxic gas measurement
CN0216 - Weight Scale