Merge branch 'jjwbruijn:master' into master

This commit is contained in:
Fab!an
2023-05-15 17:08:16 +02:00
committed by GitHub
7 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -119,14 +119,14 @@ void fakePendingData(struct pendingData *pd) {
} else {
showAPDisplay = false;
// check if we should re-init the EPD for the correct image (inverted or not)
//if (SisInverted != (pd->availdatainfo.dataTypeArgument & 0x01)) {
if (SisInverted != (pd->availdatainfo.dataTypeArgument & 0x01)) {
if (pd->availdatainfo.dataTypeArgument & 0x01) {
SisInverted = true;
} else {
SisInverted = false;
}
epdSetup(SisInverted);
//}
}
epdSetPos(0);
char *epdp = (char *)&(pd->availdatainfo.dataVer);

View File

@@ -30,7 +30,7 @@
struct pendingData __xdata pendingDataArr[MAX_PENDING_MACS];
// VERSION GOES HERE!
uint16_t __xdata version = 0x0014;
uint16_t __xdata version = 0x0015;
#define RAW_PKT_PADDING 2
@@ -740,7 +740,9 @@ void main(void) {
// received a packet, lets see what it is
switch (getPacketType(radiorxbuffer)) {
case PKT_AVAIL_DATA_REQ:
processAvailDataReq(radiorxbuffer);
if (ret == 28) {
processAvailDataReq(radiorxbuffer);
}
break;
case PKT_BLOCK_REQUEST:
processBlockRequest(radiorxbuffer, 1);