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.
Revision 8:120355a81f73, committed 2016-03-08
- Comitter:
- lyreliu
- Date:
- Tue Mar 08 08:05:20 2016 +0000
- Parent:
- 7:1f0ab6c43458
- Child:
- 9:f4bfd06b3ef1
- Commit message:
- program
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Mar 08 08:00:01 2016 +0000 +++ b/main.cpp Tue Mar 08 08:05:20 2016 +0000 @@ -59,8 +59,8 @@ end = 0xff; if(mass>3) mass =3; - mass_trans_low = (unsigned int)(mass*10000); - mass_trans_high = (unsigned int)(mass*10000)>>8; + mass_trans_low = (unsigned char)(mass*10000); + mass_trans_high = (unsigned char)(mass*10000)>>8; pc.printf("%u",start); pc.printf("%u",mass_trans_high); pc.printf("%u",mass_trans_low);