Изменения на новые настройки пинов и устройств

This commit is contained in:
cfif 2025-05-28 15:16:06 +03:00
parent 6d688be71d
commit 6ba9e2915a
2 changed files with 7 additions and 7 deletions

View File

@ -1229,7 +1229,7 @@ static _Noreturn void ModemMain_Thread(tModemMain *env) {
FlagOffUs = true;
// Включение TX_PWR_En
GpioPinSet(&env->gpios->Power.tx_pwr_en, true);
// GpioPinSet(&env->gpios->Power.tx_pwr_en, true);
// Ожидание инициализации устройства управления питанием
SystemDelayMs(80 * 2);
@ -1252,7 +1252,7 @@ static _Noreturn void ModemMain_Thread(tModemMain *env) {
//#endif
// Отключение TX_PWR_En
GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
// GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
FlagOnUs = true;
FlagOffUs = false;
@ -1270,7 +1270,7 @@ static _Noreturn void ModemMain_Thread(tModemMain *env) {
#endif
// Отключение TX_PWR_En
GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
// GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
// Фиксация уже выключенного предусилителя
FlagOnUs = true;
@ -1348,7 +1348,7 @@ static _Noreturn void ModemMain_Thread(tModemMain *env) {
LoggerInfo(LOGGER, LOG_SIGN, bufText, strlen(bufText));
startStuckGetMs = false;
// Отключение TX_PWR_En
GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
// GpioPinSet(&env->gpios->Power.tx_pwr_en, false);
}
}

View File

@ -34,9 +34,9 @@ static _Noreturn void ModemTimer_Thread(tModemTimer *env) {
// Если завис больше 30 секунд
if (dlStuckGetMs > 30000) {
GpioPinSet(&env->gpios->Power.gonec_reset, false);
SystemDelayMs(1000);
GpioPinSet(&env->gpios->Power.gonec_reset, true);
// GpioPinSet(&env->gpios->Power.gonec_reset, false);
// SystemDelayMs(1000);
// GpioPinSet(&env->gpios->Power.gonec_reset, true);
SystemDelayMs(6000);
timeModemStuckGetMs = SystemGetMs();