diff --git a/firmware/openbot/openbot.ino b/firmware/openbot/openbot.ino index a7e39d48c..0734e08f2 100644 --- a/firmware/openbot/openbot.ino +++ b/firmware/openbot/openbot.ino @@ -49,12 +49,13 @@ #define MTV 8 // Multi Terrain Vehicle #define DIY_ESP32 9 // DIY without PCB + //------------------------------------------------------// // SETUP - Choose your body //------------------------------------------------------// // Setup the OpenBot version (DIY, PCB_V1, PCB_V2, RTR_TT, RC_CAR, LITE, RTR_TT2, RTR_520, DIY_ESP32) -#define OPENBOT DIY +#define OPENBOT DIY_ESP32 //------------------------------------------------------// // SETTINGS - Global settings @@ -592,7 +593,7 @@ class MyServerCallbacks : public BLEServerCallbacks { class MyCallbacks : public BLECharacteristicCallbacks { void onWrite(BLECharacteristic *pCharacteristic) { - std::string bleReceiver = pCharacteristic->getValue(); + String bleReceiver = pCharacteristic->getValue(); if (bleReceiver.length() > 0) { for (int i = 0; i < bleReceiver.length(); i++) { on_ble_rx(bleReceiver[i]); @@ -1885,4 +1886,4 @@ void update_speed_rm() { counter_rm++; } } -#endif \ No newline at end of file +#endif