mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 06:31:01 +00:00
Add welcome screen feature toggle
This commit is contained in:
@@ -131,6 +131,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//#define DISABLE_NTP
|
||||
|
||||
#define DISABLE_WELCOME_UNSET
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// OLED & Input
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -894,9 +894,11 @@ int32_t Screen::runOnce()
|
||||
showingBootScreen = false;
|
||||
}
|
||||
|
||||
#ifndef DISABLE_WELCOME_UNSET
|
||||
if (radioConfig.preferences.region == RegionCode_Unset) {
|
||||
setWelcomeFrames();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Process incoming commands.
|
||||
for (;;) {
|
||||
|
||||
@@ -360,13 +360,13 @@ Routing_Error perhapsEncode(MeshPacket *p)
|
||||
} else {
|
||||
DEBUG_MSG("Compressing message.\n");
|
||||
// Copy the compressed data into the meshpacket
|
||||
p->decoded.payload_compressed.size = compressed_len;
|
||||
memcpy(p->decoded.payload_compressed.bytes, compressed_out, compressed_len);
|
||||
//p->decoded.payload_compressed.size = compressed_len;
|
||||
//memcpy(p->decoded.payload_compressed.bytes, compressed_out, compressed_len);
|
||||
|
||||
p->decoded.which_payloadVariant = Data_payload_compressed_tag;
|
||||
//p->decoded.which_payloadVariant = Data_payload_compressed_tag;
|
||||
}
|
||||
|
||||
if (0) {
|
||||
if (1) {
|
||||
char decompressed_out[Constants_DATA_PAYLOAD_LEN] = {};
|
||||
int decompressed_len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user