7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

adc bugfixes

This commit is contained in:
profezzorn 2022-02-06 19:18:13 -08:00
parent 91a88f978e
commit 3d89cb41f1
2 changed files with 2 additions and 2 deletions
Software/libthunderscopehw/library

View File

@ -14,7 +14,7 @@ enum ThunderScopeHWStatus thunderscopehw_adc_power(struct ThunderScopeHW* ts, bo
{
return thunderscopehw_adc_set_reg(ts,
THUNDERSCOPEHW_ADC_REG_POWER,
on ? 0x0200 : 0x0000);
on ? 0x0000 : 0x0200);
}
enum ThunderScopeHWStatus thunderscopehw_configure_adc(struct ThunderScopeHW* ts)

View File

@ -33,7 +33,7 @@
#define SPI_FRONT_END_CHANNEL_3 0xFA
#define SPI_FRONT_END_CHANNEL_4 0xFB
#define SPI_BYTE_ADC 0xFC
#define SPI_BYTE_ADC 0xFD
#define I2C_BYTE_PLL 0xFF