Index: sources/update/UiProtocol.cpp =================================================================== diff -u -r20b370a54d2737831b307a0de82aec9e06e2b772 -r61c46e9379ca82d826fbe7fae018b8362a107d9d --- sources/update/UiProtocol.cpp (.../UiProtocol.cpp) (revision 20b370a54d2737831b307a0de82aec9e06e2b772) +++ sources/update/UiProtocol.cpp (.../UiProtocol.cpp) (revision 61c46e9379ca82d826fbe7fae018b8362a107d9d) @@ -30,6 +30,23 @@ /*! + * \brief Return a new ID number. + * + * \return New ID number. + */ +uint8 UiProtocol::getNextMsgSlotId() { + return _gIdNum++; +} + +/*! + * \brief Get a new random seed. + * \return New random seed. + */ +uint16 UiProtocol::getNextMsgSeed() { + return _gRandSeed++; +} + +/*! * \brief Constructor. * * \param target Target to go after for update.