From c58935b7587980cdf16015da5e21b5896c96678e Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sat, 16 Feb 2019 23:28:14 +0100 Subject: Change RGB LEDs signals and slots to unsigned value. Signed value caused in the conversion incorrect behavior for some corner cases. Signed-off-by: Pavel Pisa --- qtmips_machine/peripspiled.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_machine') diff --git a/qtmips_machine/peripspiled.h b/qtmips_machine/peripspiled.h index 762b04d..2e2be72 100644 --- a/qtmips_machine/peripspiled.h +++ b/qtmips_machine/peripspiled.h @@ -56,8 +56,8 @@ signals: void read_notification(std::uint32_t address, std::uint32_t *value) const; void led_line_changed(uint val) const; - void led_rgb1_changed(int val) const; - void led_rgb2_changed(int val) const; + void led_rgb1_changed(uint val) const; + void led_rgb2_changed(uint val) const; public slots: void red_knob_update(int val); -- cgit v1.2.3