1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-13 11:29:51 +03:00

Added a new test with real logs from FLVSS. It seems there is a bug on

the FLVSS :(
This commit is contained in:
bsongis 2014-07-11 23:53:36 +02:00
parent 58ed329ac2
commit 6d18820b53

View file

@ -270,6 +270,17 @@ TEST(FrSkySPORT, frskySetCellVoltage)
EXPECT_TRUE(checkScreenshot("one_sensor_votages_screen"));
}
TEST(FrSkySPORT, StrangeCellsBug)
{
memclear(&frskyData, sizeof(frskyData));
uint8_t pkt[] = { 0x7E, 0x48, 0x10, 0x00, 0x03, 0x30, 0x15, 0x50, 0x81, 0xD5 };
EXPECT_EQ(checkSportPacket(pkt+1), true);
frskySportProcessPacket(pkt+1);
EXPECT_EQ(frskyData.hub.cellsCount, 3);
EXPECT_EQ(frskyData.hub.cellVolts[0], _V(004)); // Aie, it seems a FLVSS bug :(
EXPECT_EQ(frskyData.hub.cellVolts[1], _V(413));
}
TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)
{
//telemetryReset();