takeshi yoshida / Mbed 2 deprecated 2016_lambdaController

Dependencies:   mbed

Dependents:  

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)