Telemetry screen cosmetics

This commit is contained in:
Bertrand Songis
2019-08-29 11:51:11 +02:00
parent fa0ffd6d42
commit 3f9a863b00
9 changed files with 70 additions and 46 deletions
+6 -6
View File
@@ -494,7 +494,7 @@ void hallStick_GetTxDataFromUSB( void )
break;
case TRANSFER_DIR_HALLSTICK:
onFlySkyUsbDownloadStart(TRANSFER_DIR_HALLSTICK);
// onFlySkyUsbDownloadStart(TRANSFER_DIR_HALLSTICK);
if ( 0xA2 == HallProtocolTx.hallID.ID )
{
@@ -513,17 +513,17 @@ void hallStick_GetTxDataFromUSB( void )
break;
case TRANSFER_DIR_RFMODULE:
onFlySkyUsbDownloadStart(TRANSFER_DIR_RFMODULE);
// onFlySkyUsbDownloadStart(TRANSFER_DIR_RFMODULE);
if ( 0xAE == HallProtocolTx.hallID.ID && HallProtocolTx.length == 0 )
{ // 55 AE 00 D3 47
onIntmoduleUsbDownloadStart(INTERNAL_MODULE);
// onIntmoduleUsbDownloadStart(INTERNAL_MODULE);
break;
}
//if ( isFlySkyUsbDownload() )
{
intmoduleSendBufferDMA( pt, HallProtocolTx.length + 3 + 2 );
// intmoduleSendBufferDMA( pt, HallProtocolTx.length + 3 + 2 );
}
break;
}
@@ -532,7 +532,7 @@ void hallStick_GetTxDataFromUSB( void )
if ( !usbPlugged() )
{
onFlySkyUsbDownloadStart(0);
// onFlySkyUsbDownloadStart(0);
}
}
@@ -586,7 +586,7 @@ void hall_stick_loop(void)
//TRACE("HALL: %02X %02X %02X ...%04X", pt[0], pt[1], pt[2], HallProtocol.checkSum);
pt[HallProtocol.length + 3] = HallProtocol.checkSum & 0xFF;
pt[HallProtocol.length + 4] = HallProtocol.checkSum >> 8;
usbDownloadTransmit( pt, HallProtocol.length + 5 );
// usbDownloadTransmit( pt, HallProtocol.length + 5 );
break;
}
//printf_log_now = 1;
+1 -1
View File
@@ -51,7 +51,7 @@ uint32_t readTrims()
return result;
}
uint8_t trimDown(uint8_t idx)
bool trimDown(uint8_t idx)
{
return readTrims() & (1 << idx);
}
+1 -1
View File
@@ -90,7 +90,7 @@ void pwrOff()
GPIO_ResetBits(PWR_GPIO, PWR_ON_GPIO_PIN);
}
uint32_t pwrPressed()
bool pwrPressed()
{
return GPIO_ReadInputDataBit(PWR_GPIO, PWR_SWITCH_GPIO_PIN) == Bit_RESET;
}