fix #624 - update battery level and current time on mynodeinfo

This commit is contained in:
Kevin Hester
2021-01-04 09:59:53 +08:00
parent da8b1d41c7
commit 94a47dba7d
4 changed files with 38 additions and 27 deletions

View File

@@ -134,6 +134,8 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
fromRadioScratch.which_variant = FromRadio_my_info_tag;
fromRadioScratch.variant.my_info = myNodeInfo;
state = STATE_SEND_RADIO;
service.refreshMyNodeInfo(); // Update my NodeInfo because the client will be asking for it soon.
break;
case STATE_SEND_RADIO: