Refactoring
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
|
||||
#ifdef ENABLE_AIRCOPY
|
||||
|
||||
//#if !defined(ENABLE_OVERLAY)
|
||||
// #include "ARMCM0.h"
|
||||
//#endif
|
||||
|
||||
#include "app/aircopy.h"
|
||||
#include "audio.h"
|
||||
#include "driver/bk4819.h"
|
||||
@@ -61,6 +65,7 @@ bool AIRCOPY_SendMessage(void)
|
||||
|
||||
if (++gAirCopyBlockNumber >= 0x78) {
|
||||
gAircopyState = AIRCOPY_COMPLETE;
|
||||
//NVIC_SystemReset();
|
||||
}
|
||||
|
||||
RADIO_SetTxParameters();
|
||||
|
@@ -31,7 +31,7 @@ static void set_bit(uint8_t* array, int bit_index) {
|
||||
array[bit_index / 8] |= (1 << (bit_index % 8));
|
||||
}
|
||||
|
||||
int get_bit(uint8_t* array, int bit_index) {
|
||||
static int get_bit(uint8_t* array, int bit_index) {
|
||||
return (array[bit_index / 8] >> (bit_index % 8)) & 1;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,8 @@ void UI_DisplayAircopy(void)
|
||||
gFrameBuffer[4][2 + i] = 0x81;
|
||||
}
|
||||
|
||||
gFrameBuffer[4][125] = 0xff;
|
||||
|
||||
if(gAirCopyBlockNumber + gErrorsDuringAirCopy != 0)
|
||||
{
|
||||
// Check CRC
|
||||
@@ -106,8 +108,6 @@ void UI_DisplayAircopy(void)
|
||||
}
|
||||
}
|
||||
|
||||
gFrameBuffer[4][125] = 0xff;
|
||||
|
||||
ST7565_BlitFullScreen();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user