mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 10:17:45 +08:00
Speeded up IO startup, needs review
This commit is contained in:
@@ -110,8 +110,12 @@ then
|
|||||||
#
|
#
|
||||||
# Upgrade PX4IO firmware
|
# Upgrade PX4IO firmware
|
||||||
#
|
#
|
||||||
if px4io update
|
if px4io detect
|
||||||
then
|
then
|
||||||
|
echo "PX4IO running, not upgrading"
|
||||||
|
else
|
||||||
|
echo "Attempting to upgrade PX4IO"
|
||||||
|
px4io update
|
||||||
if [ -d /fs/microsd ]
|
if [ -d /fs/microsd ]
|
||||||
then
|
then
|
||||||
echo "Flashed PX4IO Firmware OK" > /fs/microsd/px4io.log
|
echo "Flashed PX4IO Firmware OK" > /fs/microsd/px4io.log
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ private:
|
|||||||
void drain();
|
void drain();
|
||||||
int send(uint8_t c);
|
int send(uint8_t c);
|
||||||
int send(uint8_t *p, unsigned count);
|
int send(uint8_t *p, unsigned count);
|
||||||
int get_sync(unsigned timeout = 100);
|
int get_sync(unsigned timeout = 1000);
|
||||||
int sync();
|
int sync();
|
||||||
int get_info(int param, uint32_t &val);
|
int get_info(int param, uint32_t &val);
|
||||||
int erase();
|
int erase();
|
||||||
|
|||||||
Reference in New Issue
Block a user