mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
misc debug output
This commit is contained in:
parent
8a1754efe8
commit
13307c502f
@ -1,7 +1,9 @@
|
|||||||
# High priority
|
# High priority
|
||||||
|
|
||||||
- why is the net so chatty now?
|
- why is the net so chatty now?
|
||||||
|
- three bakc to back sends are getting overritten - shows up as three separate writes with the same payload - might be a bug on the android side or the device side - probably android
|
||||||
- do a release
|
- do a release
|
||||||
|
- device wakes, turns BLE on and phone doesn't notice (while phone was sitting in auto-connect)
|
||||||
- E22 bringup
|
- E22 bringup
|
||||||
- encryption review findings writeup
|
- encryption review findings writeup
|
||||||
- turn on modem-sleep mode - https://github.com/espressif/arduino-esp32/issues/1142#issuecomment-512428852
|
- turn on modem-sleep mode - https://github.com/espressif/arduino-esp32/issues/1142#issuecomment-512428852
|
||||||
|
@ -49,8 +49,6 @@ class ToRadioCharacteristic : public CallbackCharacteristic
|
|||||||
|
|
||||||
void onWrite(BLECharacteristic *c)
|
void onWrite(BLECharacteristic *c)
|
||||||
{
|
{
|
||||||
DEBUG_MSG("Got on write\n");
|
|
||||||
|
|
||||||
bluetoothPhoneAPI->handleToRadio(c->getData(), c->getValue().length());
|
bluetoothPhoneAPI->handleToRadio(c->getData(), c->getValue().length());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -101,10 +101,12 @@ void NodeDB::resetRadioConfig()
|
|||||||
crypto->setKey(channelSettings.psk.size, channelSettings.psk.bytes);
|
crypto->setKey(channelSettings.psk.size, channelSettings.psk.bytes);
|
||||||
|
|
||||||
// temp hack for quicker testing
|
// temp hack for quicker testing
|
||||||
|
|
||||||
/*
|
/*
|
||||||
radioConfig.preferences.screen_on_secs = 30;
|
radioConfig.preferences.screen_on_secs = 30;
|
||||||
radioConfig.preferences.wait_bluetooth_secs = 30;
|
radioConfig.preferences.wait_bluetooth_secs = 30;
|
||||||
radioConfig.preferences.position_broadcast_secs = 15;
|
radioConfig.preferences.position_broadcast_secs = 6 * 60;
|
||||||
|
radioConfig.preferences.ls_secs = 60;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,8 +42,9 @@ void PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
|
|||||||
if (pb_decode_from_bytes(buf, bufLength, ToRadio_fields, &toRadioScratch)) {
|
if (pb_decode_from_bytes(buf, bufLength, ToRadio_fields, &toRadioScratch)) {
|
||||||
switch (toRadioScratch.which_variant) {
|
switch (toRadioScratch.which_variant) {
|
||||||
case ToRadio_packet_tag: {
|
case ToRadio_packet_tag: {
|
||||||
// If our phone is sending a position, see if we can use it to set our RTC
|
|
||||||
MeshPacket &p = toRadioScratch.variant.packet;
|
MeshPacket &p = toRadioScratch.variant.packet;
|
||||||
|
DEBUG_MSG("PACKET FROM PHONE: id=%d, to=%x, want_ack=%d, which1=%d, which2=%d, typ=%d, buflen=%d\n", p.id, p.to, p.want_ack, p.which_payload,
|
||||||
|
p.decoded.which_payload, p.decoded.data.typ, bufLength);
|
||||||
service.handleToRadio(p);
|
service.handleToRadio(p);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user