[Ovmsdev] Warning in Duktape
Michael Balzer
dexter at expeedo.de
Sun Oct 23 22:14:48 HKT 2022
That's an open end, implementing command registration for Duktape.
There's a thread on this… found it:
http://lists.openvehicles.com/pipermail/ovmsdev/2020-July/006952.html
Regards,
Michael
Am 23.10.22 um 15:38 schrieb Michael Geddes:
> There's an unused variable 'dcc' warning in the below code.
>
> It seems that the 'Perform the callback' is not being 'performed!
>
> Is this deliberate?
>
>
> //.ichael
>
>
>
> void DukOvmsCommandRegisterRun(int verbosity, OvmsWriter* writer,
> OvmsCommand* cmd, int argc, const char* const* argv)
> {
> ESP_LOGD(TAG, "DukOvmsCommandRegisterRun(%s)",cmd->GetName());
> auto it = MyDuktape.m_cmdmap.find(cmd);
> if (it == MyDuktape.m_cmdmap.end())
> {
> ESP_LOGE(TAG, "Command '%s' cannot be found in registry",cmd->GetName());
> return;
> }
> else
> {
> DuktapeConsoleCommand* dcc = it->second;
> // Perform the callback
> }
> }
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20221023/6b526fce/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20221023/6b526fce/attachment.sig>
More information about the OvmsDev
mailing list