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: LambdaController.cpp
- Revision:
- 7:5b74ff881644
- Parent:
- 6:c4e901c6001a
--- a/LambdaController.cpp Tue Sep 13 02:36:33 2016 +0000 +++ b/LambdaController.cpp Wed Sep 14 14:08:51 2016 +0000 @@ -64,7 +64,7 @@ uint16_t LambdaController::get_all_switch() { - return (received_data[2] << 8) || received_data[1]; + return (received_data[1] << 8) | received_data[2]; } bool LambdaController::get_switch(int num)