ausocean/cloud

extStop should return error if OffActions is empty

開放

#409 建立於 2024年12月20日

 (0 則留言) (0 個反應) (0 位負責人)Go (3 個分叉)auto 404
P2enhancementgood first issue

倉庫指標

星標
 (1 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently if extStop finds that there are no off actions there is no logging and nil returned. However, extStops sole purpose is to stop the hardware. If this has been called and there are no off actions, then it seems erroneous to return nil as if there are no problems, when in fact stop couldn't happen. We should therefore return an error in this circumstance, and if we don't care we can just ignore this particular error.

貢獻者指南