Issue #37 Reset FPS counter when network is connected

This commit is contained in:
Mat Sutcliffe
2021-08-09 00:11:03 +01:00
parent 81d2dbbac9
commit a89ca2d59a
6 changed files with 30 additions and 1 deletions

View File

@@ -607,6 +607,14 @@ namespace XSwiftBus
sendDBusMessage(reply);
});
}
else if (message.getMethodName() == "resetFrameTotals")
{
maybeSendEmptyDBusReply(wantsReply, sender, serial);
queueDBusCall([=]()
{
resetFrameTotals();
});
}
else if (message.getMethodName() == "getLatitudeDeg")
{
queueDBusCall([ = ]()