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 1:2e4615f18293, committed 2015-08-18
- Comitter:
- ollie8
- Date:
- Tue Aug 18 11:48:16 2015 +0000
- Parent:
- 0:46f37f02c1f1
- Child:
- 2:aa7033f339e1
- Commit message:
- Baud rate can now be passed into start method
Changed in this revision
| logger.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/logger.h Tue Aug 18 11:43:40 2015 +0000
+++ b/logger.h Tue Aug 18 11:48:16 2015 +0000
@@ -56,8 +56,8 @@
pc = new Serial(USBTX, USBRX);
}
- void start() {
- pc->baud(460800);
+ void start(int baudRate = 460800) {
+ pc->baud(baudRate);
}
};