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.
Diff: main.cpp
- Revision:
- 16:3cf10425a0f1
- Parent:
- 15:0c28f02dd5dc
- Child:
- 17:688db5210e6b
--- a/main.cpp Tue Mar 08 14:54:04 2016 +0000
+++ b/main.cpp Tue Mar 08 15:01:15 2016 +0000
@@ -63,9 +63,9 @@
if(mass>3)
mass =3;
- mass_trans_low = (unsigned char)(mass*10000);
- mass_trans_high = (unsigned char)(mass*10000)>>8;
- voltage_test = (unsigned char)voltage_measure*10;
+ mass_trans_low = (unsigned int)(mass*10000);
+ mass_trans_high = (unsigned int)(mass*10000)>>8;
+ voltage_test = (unsigned int)voltage_measure*10;
voltage_high = (unsigned int)(voltage_measure*10000)>>8;
voltage_low = (unsigned int)(voltage_measure*10000);