From 0fcc3a452bb863a8ded66d1643ff3439b868e9c4 Mon Sep 17 00:00:00 2001 From: 771-8bit Date: Sat, 10 Feb 2024 03:20:46 +0900 Subject: [PATCH] fix --- Main/Main.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Main/Main.ino b/Main/Main.ino index eeb63d9..7d6dc86 100644 --- a/Main/Main.ino +++ b/Main/Main.ino @@ -132,8 +132,8 @@ void loop() { // フライト = 回路としてOPEN = LOW // バッテリー駆動でなくUSB駆動の場合常にLOWなので除外 data_key_sw_active = (digitalRead(KEY_SW) == LOW) && data_bat_v > 1; - if (data_key_sw_active) { - opener.goREADY(); + if (data_key_sw_active && opener.mode == OPENER::CHECK) { + // opener.goREADY(); } // デバッグ出力 @@ -238,7 +238,7 @@ void loop() { downlink += String(data_gnss_latitude_udeg % 1000000) + ','; downlink += String(data_gnss_longitude_udeg % 1000000) + ','; downlink += String(data_bat_v, 2) + ','; - downlink += String(data_ext_v, 1) + ','; + downlink += String(data_ext_v, 1); // テレメトリダウンリンク const uint32_t downlink_rate_ms = 1000; @@ -278,7 +278,7 @@ void loop() { float uplink_float = uplink.toFloat(); if (uplink_float != 0) { opener.set_open_threshold_time_ms(uplink_float * 1000); - response = "open:" + String((float)opener.get_open_threshold_time_ms() / 1000.0, 2); + response = "open:" + String(static_cast(opener.get_open_threshold_time_ms()) / 1000.0, 2); need_response_usb = true; need_response_es920 = true; }