Signed-off-by: Marek Vasut <[email protected]>
---
 hardware/asix-sigma/asix-sigma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c
index 2cd9b9e..8e79403 100644
--- a/hardware/asix-sigma/asix-sigma.c
+++ b/hardware/asix-sigma/asix-sigma.c
@@ -589,7 +589,7 @@ static int upload_firmware(int firmware_idx, struct 
dev_context *devc)
        ftdi_usb_purge_buffers(ftdic);
 
        /* Discard garbage. */
-       while (1 == sigma_read(&pins, 1, devc))
+       while (sigma_read(&pins, 1, devc) == 1)
                ;
 
        /* Initialize the logic analyzer mode. */
-- 
1.8.5.3


------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to