phoenix-rtos / phoenix-rtos-hostutils

Phoenix-RTOS supporting daemon
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

psu: fix check for invalid timeout value #46

Closed gerard5 closed 1 year ago

gerard5 commented 1 year ago

Quick fix for https://github.com/phoenix-rtos/phoenix-rtos-hostutils/pull/45#discussion_r1241262716

Fixes invalid value detection case, e.g.: psu -t 10abc script.plo psu -t "10 xyz 1234" script.plo

Distinguishes as an error: psu -t "" script.plo

JIRA: RTOS-510

Description

Motivation and Context

Types of changes

How Has This Been Tested?

Checklist:

Special treatment