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.
Dependencies: mbed
Diff: src/menu.cpp
- Revision:
- 1:bc3509459a27
- Parent:
- 0:b3410a1e9843
diff -r b3410a1e9843 -r bc3509459a27 src/menu.cpp --- a/src/menu.cpp Thu Jan 27 21:58:14 2022 +0000 +++ b/src/menu.cpp Tue Dec 06 18:47:01 2022 +0000 @@ -32,6 +32,7 @@ #include "stdlib.h" #include "lut.h" #include "temp.h" +#include "clocks.h" Ticker drt; unsigned int oldTime=0; @@ -133,7 +134,7 @@ struct displayValues dvals = calcDisplayValues(adcVals); - double pwr_out=dvals.v12f*dvals.i12f; + //double pwr_out=dvals.v12f*dvals.i12f; //double pwr_in=dvals.v48f*(dvals.i48f); //double pwr_eff=100*pwr_out/pwr_in; @@ -146,6 +147,8 @@ sprintf(strbuf, "V48=%2.1f | V12=%2.1f, I12=%3.2f | Temp=%f | Test=%2.1f \r\n", dvals.v48f, dvals.v12f, dvals.i12f, temp_reading, dvals.test_v); //sprintf(strbuf, "V48=%2.1f, I48=%2.2f | V24=%2.1f, I24=%2.2f | V12=%2.1f, I12=%2.2f || loop=%d \r\n", v48f, i48f, v24f, i24f, v12f, i12f, loopTime); sendSerial(strbuf); + sprintf(strbuf, "NumOn=%d \r\n", numOn); + sendSerial(strbuf); //sprintf(strbuf, "adcVals.i12 = %d \r\n", adcVals.i12); //sendSerial(strbuf); //sprintf(strbuf, "Power Out = %4.1f W, Power In = %4.1f W \r\n", pwr_out, pwr_in);