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:
- 15:0c28f02dd5dc
- Parent:
- 14:b67ce99ccd48
- Child:
- 16:3cf10425a0f1
--- a/main.cpp Tue Mar 08 14:44:19 2016 +0000
+++ b/main.cpp Tue Mar 08 14:54:04 2016 +0000
@@ -57,8 +57,8 @@
void SerialTransmit(void)
{
unsigned char start,end,voltage_high,voltage_low,voltage_test;
- start = 0xfe;
- end = 0xff;
+ start = '#';
+ end = '$';
if(mass>3)
@@ -67,8 +67,8 @@
mass_trans_high = (unsigned char)(mass*10000)>>8;
voltage_test = (unsigned char)voltage_measure*10;
- voltage_high = (unsigned char)(voltage_measure*10000)>>8;
- voltage_low = (unsigned char)(voltage_measure*10000);
+ voltage_high = (unsigned int)(voltage_measure*10000)>>8;
+ voltage_low = (unsigned int)(voltage_measure*10000);
pc.printf("%c",start);
//pc.printf("%c",mass_trans_high);