Guilhem Saurel
/
AV_MQTT_example
Example for AV_MQTT
Revision 7:66ff43202f50, committed 2013-08-13
- Comitter:
- Nim65s
- Date:
- Tue Aug 13 13:53:16 2013 +0000
- Parent:
- 6:761a452a8a77
- Commit message:
- LEDs' endianness inverted
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 761a452a8a77 -r 66ff43202f50 main.cpp --- a/main.cpp Tue Aug 13 13:38:27 2013 +0000 +++ b/main.cpp Tue Aug 13 13:53:16 2013 +0000 @@ -10,9 +10,9 @@ void callback(const char *key, const char *value) { int led = atoi(value); - l2 = (led & 4) >> 2; + l4 = (led & 4) >> 2; l3 = (led & 2) >> 1; - l4 = led & 1; + l2 = led & 1; } int main() {