Created
April 17, 2020 03:06
-
-
Save BenJuan26/cd0239e49b57b1ac31357c1160a82064 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void serialRx() { | |
| if (!Serial.available()) { | |
| return; | |
| } | |
| DynamicJsonBuffer jsonBuffer(512); | |
| JsonObject &root = jsonBuffer.parseObject(Serial); | |
| if (!root.success()) { | |
| return; | |
| } | |
| long flags = root["Flags"]; | |
| currentFlags = flags; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment