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: edge_utils/edge_mgr.cpp
- Revision:
- 8:5590f55bdf41
- Parent:
- 7:aa858d789025
- Child:
- 9:f958fa2cdc74
--- a/edge_utils/edge_mgr.cpp Thu Dec 07 01:06:46 2017 +0000
+++ b/edge_utils/edge_mgr.cpp Thu Dec 07 10:13:13 2017 +0000
@@ -80,9 +80,12 @@
if (sensor[sensor_index]) {
afero->setAttributeBool(ATTR_COLOR0_PRESENT, true) ;
afero->setAttributeBool(ATTR_COLOR0_ENABLE, true) ;
- afero->setAttribute32(ATTR_COLOR0_PWM_R, color0_pwm[0]) ;
- afero->setAttribute32(ATTR_COLOR0_PWM_G, color0_pwm[1]) ;
- afero->setAttribute32(ATTR_COLOR0_PWM_B, color0_pwm[2]) ;
+// afero->setAttribute32(ATTR_COLOR0_PWM_R, color0_pwm[0]) ;
+// afero->setAttribute32(ATTR_COLOR0_PWM_G, color0_pwm[1]) ;
+// afero->setAttribute32(ATTR_COLOR0_PWM_B, color0_pwm[2]) ;
+ afero->getAttribute(ATTR_COLOR0_PWM_R) ;
+ afero->getAttribute(ATTR_COLOR0_PWM_G) ;
+ afero->getAttribute(ATTR_COLOR0_PWM_B) ;
} else {
afero->setAttributeBool(ATTR_COLOR0_PRESENT, false) ;
}
@@ -91,9 +94,12 @@
if (sensor[sensor_index]) {
afero->setAttributeBool(ATTR_COLOR1_PRESENT, true) ;
afero->setAttributeBool(ATTR_COLOR1_ENABLE, true) ;
- afero->setAttribute32(ATTR_COLOR1_PWM_R, color1_pwm[0]) ;
- afero->setAttribute32(ATTR_COLOR1_PWM_G, color1_pwm[1]) ;
- afero->setAttribute32(ATTR_COLOR1_PWM_B, color1_pwm[2]) ;
+// afero->setAttribute32(ATTR_COLOR1_PWM_R, color1_pwm[0]) ;
+// afero->setAttribute32(ATTR_COLOR1_PWM_G, color1_pwm[1]) ;
+// afero->setAttribute32(ATTR_COLOR1_PWM_B, color1_pwm[2]) ;
+ afero->getAttribute(ATTR_COLOR1_PWM_R) ;
+ afero->getAttribute(ATTR_COLOR1_PWM_G) ;
+ afero->getAttribute(ATTR_COLOR1_PWM_B) ;
} else {
afero->setAttributeBool(ATTR_COLOR1_PRESENT, false) ;
}