Skip to content

tests/driver_mq3: fix build upon avr 8 bits MCU#6581

Merged
PeterKietzmann merged 2 commits intoRIOT-OS:masterfrom
mali:fix_tests_driver_mq3
Feb 16, 2017
Merged

tests/driver_mq3: fix build upon avr 8 bits MCU#6581
PeterKietzmann merged 2 commits intoRIOT-OS:masterfrom
mali:fix_tests_driver_mq3

Conversation

@mali
Copy link
Copy Markdown
Contributor

@mali mali commented Feb 8, 2017

this test won't build with avr MCU like atmega328p because of
tests/driver_mq3/main.c:58:27: error: integer overflow in expression [-Werror=overflow]
xtimer_usleep(500 * 1000);

also use timex.h constant define.
see #6148

fix tests/driver_mq3/main.c:58:27: error: integer overflow in expression [-Werror=overflow]
         xtimer_usleep(500 * 1000);
@mali mali mentioned this pull request Feb 12, 2017
@PeterKietzmann PeterKietzmann added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Platform: AVR Platform: This PR/issue effects AVR-based platforms labels Feb 13, 2017
@PeterKietzmann
Copy link
Copy Markdown
Member

@mali please check Jenkins log

@mali
Copy link
Copy Markdown
Contributor Author

mali commented Feb 13, 2017

strange... timex.h is included by xtimer.h, anyway, re use literal number instead.

using define constants from timex.h breaks build for some boards.
@mali mali mentioned this pull request Feb 15, 2017
@PeterKietzmann PeterKietzmann added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 16, 2017
Copy link
Copy Markdown
Member

@PeterKietzmann PeterKietzmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me. ACK

@PeterKietzmann PeterKietzmann merged commit a3f3441 into RIOT-OS:master Feb 16, 2017
@mali mali deleted the fix_tests_driver_mq3 branch February 26, 2017 16:48
@smlng
Copy link
Copy Markdown
Member

smlng commented Feb 27, 2017

should've been squashed before merge ... wasn't there a fine on such things 😜

@mali
Copy link
Copy Markdown
Contributor Author

mali commented Feb 27, 2017

I was thinking that too :-)

@miri64
Copy link
Copy Markdown
Member

miri64 commented Feb 27, 2017

wasn't there a fine on such things 😜

I guess there will be free beer tomorrow in Hamburg ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: AVR Platform: This PR/issue effects AVR-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants