diff --git a/libraries/AP_HAL_AVR/examples/UARTDriver/UARTDriver.pde b/libraries/AP_HAL_AVR/examples/UARTDriver/UARTDriver.pde index 3821e21a57..c08a0dba0d 100644 --- a/libraries/AP_HAL_AVR/examples/UARTDriver/UARTDriver.pde +++ b/libraries/AP_HAL_AVR/examples/UARTDriver/UARTDriver.pde @@ -36,8 +36,10 @@ void setup(void) hal.console->println(1000, 10); hal.console->println(1000, 16); hal.console->println_P(PSTR("progmem")); - hal.console->printf("printf %d %u %#x %p %f %S\n", -1000, 1000, 1000, 1000, 1.2345, PSTR("progmem")); - hal.console->printf_P(PSTR("printf_P %d %u %#x %p %f %S\n"), -1000, 1000, 1000, 1000, 1.2345, PSTR("progmem")); + int x = 3; + int *ptr = &x; + hal.console->printf("printf %d %u %#x %p %f %S\n", -1000, 1000, 1000, ptr, 1.2345, PSTR("progmem")); + hal.console->printf_P(PSTR("printf_P %d %u %#x %p %f %S\n"), -1000, 1000, 1000, ptr, 1.2345, PSTR("progmem")); hal.console->println("done"); }