message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Apache Mynewt NimBLE 1.3.0 release | @@ -22,8 +22,8 @@ repo.versions:
"0.0.0": "master"
"0-dev": "0.0.0"
- "0-latest": "1.2.0"
- "1-latest": "1.2.0"
+ "0-latest": "1.3.0"
+ "1-latest": "1.3.0"
"1.0.0": "nimble_1_0_0_tag"
"1.1.0": "nimble_1_1_0_tag"
|
groups: Fix <user> left <group> notifications | ::
%remove-members
:- ~
- :* (snoc ships text+(rap 3 ' joined ' title.u.meta ~))
+ :* (snoc ships text+(rap 3 ' left ' title.u.meta ~))
~
now.bowl
/
|
eyre: clean up old +load code
Removes pre-breach state adapter logic and touches up code style. | ::
++ load
=> |%
- +$ channel-old
- $: state=(each timer duct)
- next-id=@ud
- events=(qeu [id=@ud lines=wall])
- subscriptions=(map wire [ship=@p app=term =path duc=duct])
- ==
- +$ channel-state-old
- $: session=(map @t channel-old)
- duct-to-key=(map duct @t)
- ==
- ++ axle-2019-1-7
- %+ cork
- axle
- |= =axle
- axl... |
expand poke-noun to accept ~ or ~collection | ::[~ ..prep(+<+ u.old)]
::
++ poke-noun
- |= @
+ |= a=?(~ @da)
^- (quip move _+>)
~& %poked
- ta-done:(ta-write-config:ta now.bol ['a description' pub=& vis=& [~palzod ~ ~]])
+ ?~ a
+ ta-done:(ta-create:ta %fora ['a description' pub=& vis=& [~palzod ~ ~]])
+ ta-done:(ta-submit:ta a 'a topic' ~['with contents'])
::
++ w... |
factor out logic for mapping in kernel heap | @@ -247,6 +247,34 @@ void force_frame(page_t *page, int is_kernel, int is_writeable, unsigned int add
set_bit_frame(addr);
}
+static void create_heap_page_tables(page_directory_t* dir) {
+ //here, we call get_page but not alloc_frame
+ //this causes page_table_t's to be alloc'd if not already existing
+ //we call this ... |
[util/string] remove TRetVal protocol for TInputRangeAdaptor; [part 4]; | @@ -48,7 +48,6 @@ namespace NPrivate {
template <class It>
struct TStlIteratorFace: public It, public TInputRangeAdaptor<TStlIteratorFace<It>> {
- using TRetVal = decltype(std::declval<It>().Next());
using TStrBuf = decltype(std::declval<It>().Next()->Token());
template <typename... Args>
|
pybricks/common/LightGrid: add pixel method | @@ -35,6 +35,11 @@ static void set_light_grid_full(pbdrv_pwm_dev_t *pwm, const uint8_t *image) {
}
}
+// FIXME: pbio will have a light grid interface. Use that when ready.
+static void set_pixel_brightness(pbdrv_pwm_dev_t *pwm, uint8_t row, uint8_t col, int32_t brightness) {
+ pb_assert(pwm->funcs->set_duty(pwm, channe... |
ifname shortcut | @@ -213,11 +213,13 @@ fail:
}
void lpd_setup( void ) {
+ const char *ifname = gconf->dht_ifname;
+
if( gconf->lpd_disable ) {
return;
}
- if( gconf->dht_ifname && (gconf->af == AF_UNSPEC || gconf->af == AF_INET) ) {
+ if( ifname && (gconf->af == AF_UNSPEC || gconf->af == AF_INET) ) {
log_warn( "LPD: ifname setting not ... |
Use safe multiplication for calculating context_size | #include <openenclave/internal/utils.h>
#include "arena.h"
#include "handle_ecall.h"
+#include "openenclave/internal/safemath.h"
#include "platform_t.h"
// The number of host thread workers. Initialized by host through ECALL
@@ -114,7 +115,8 @@ oe_result_t oe_sgx_init_context_switchless_ecall(
OE_RAISE(OE_ALREADY_INITI... |
Don't count key words when determining if the file count evenly divides
the block count in the .visit file format | @@ -2374,6 +2374,11 @@ avtDatabase::NumStagesForFetch(avtDataRequest_p)
// Jim Eliot, Wed 18 Nov 11:30:58 GMT 2015
// Fixed bug (2461) with reading DOS formatted files which uses '\'r
// newline character
+//
+// Burlen Loring, Fri Apr 28 10:21:30 PDT 2017
+// Don't count key words when determining if the file count ev... |
refactor(hid): Replace modifier usage values with their cpp definitions
Improves readability of the HID reports. | @@ -37,10 +37,10 @@ static const u8_t zmk_hid_report_desc[] = {
HID_USAGE_KEY,
/* USAGE_MINIMUM (Keyboard LeftControl) */
HID_LI_USAGE_MIN(1),
- 0xE0,
+ HID_USAGE_KEY_KEYBOARD_LEFTCONTROL,
/* USAGE_MAXIMUM (Keyboard Right GUI) */
HID_LI_USAGE_MAX(1),
- 0xE7,
+ HID_USAGE_KEY_KEYBOARD_RIGHT_GUI,
/* LOGICAL_MINIMUM (0) */... |
Make 102_non_standby_recovery.pl less likely to fail.
The test will now wait until the restored node has finished recovery
before trying to query the node, which causes a test failure.
Authored-by: Brent Doil | @@ -31,6 +31,9 @@ $node->safe_psql(
INSERT INTO co select i, i FROM generate_series(1,10)i;
COMMIT;");
+my $lsn =
+ $node->safe_psql('postgres', "SELECT pg_current_wal_lsn();");
+
# Stop the PostgreSQL server
$node->stop;
@@ -43,7 +46,12 @@ $restored_node->init_from_backup($node, 'testbackup', has_restoring => 1, stand... |
comment out future link in docs | @@ -6,7 +6,7 @@ title: Working With AppScope
These docs explain how to "drive" AppScope directly. You can also "drive" AppScope from Cribl Stream or Cribl Edge.
-<!-->
+<!--
: see Cribl's documentation about the [AppScope Source](https://docs.cribl.io/stream/sources-appscope) and the [AppScope Config Editor](https://do... |
pg_rewind: parse bitmap wal records. | #include <unistd.h>
+#include "access/bitmap.h"
#include "access/heapam_xlog.h"
#include "access/gin_private.h"
#include "access/gist_private.h"
@@ -332,6 +333,7 @@ extractPageInfo(XLogRecord *record)
case RM_MULTIXACT_ID:
case RM_STANDBY_ID:
case RM_RELMAP_ID:
+ case RM_DISTRIBUTEDLOG_ID:
break;
case RM_HEAP_ID:
@@ -9... |
Added some ScePaf functions | @@ -5724,3 +5724,17 @@ modules:
ksceMotionDevSamplingStart: 0xC02C85AB
ksceMotionDevSetSamplingMode: 0xDBAF611A
ksceMotionDevSamplingStop: 0xFD0B0785
+ ScePaf:
+ nid: 0xCD679177
+ libraries:
+ ScePafStdc:
+ kernel: false
+ nid: 0xA7D28DAE
+ functions:
+ sce_paf_private_free: 0x1B77082E
+ sce_paf_private_memset: 0xE148A... |
dshot: continue operation right away after dir switch | @@ -362,9 +362,9 @@ void motor_write(float *values) {
const uint16_t value = motor_dir == MOTOR_REVERSE ? DSHOT_CMD_ROTATE_REVERSE : DSHOT_CMD_ROTATE_NORMAL;
make_packet_all(value, true);
counter++;
- } else {
- make_packet_all(0, false);
+ }
+ if (counter == 24) {
counter = 0;
dir_change_time = 0;
last_motor_dir = mot... |
fix mixgo adc | @@ -148,9 +148,10 @@ class led:
class ADCSensor:
def __init__(self,pin):
- self.pin=pin
+ self.adc=ADC(Pin(pin))
+ self.adc.atten(ADC.ATTN_11DB)
def read(self):
- return ADC(Pin(self.pin)).read()
+ return self.adc.read()
class RGB:
def __init__(self, pin, num):
|
Conditionally leave out bits of LAPACK to be overridden by ReLAPACK | @@ -53,7 +53,7 @@ set(BLAS2_COMPLEX_ONLY_MANGLED_SOURCES
# these do not have separate 'z' sources
set(BLAS3_SOURCES
gemm.c symm.c
- trsm.c syrk.c syr2k.c
+ trsm.c syrk.c syr2k.c gemmt.c
)
set(BLAS3_MANGLED_SOURCES
@@ -189,7 +189,16 @@ if (NOT DEFINED NO_LAPACK)
)
GenerateNamedObjects("${LAPACK_SOURCES}")
+ if (NOT RELA... |
Fixing Go program crash.
Go request registration should be removed before C request memory freed.
C request address used as a key in Go map. Freed memory can be instantly
reused for other request and older request registration should removed at this
point to avoid collisions. | @@ -107,10 +107,10 @@ func (r *request) response() *response {
}
func (r *request) done() {
- C.nxt_go_request_done(r.c_req)
-
remove_request(r)
+ C.nxt_go_request_done(r.c_req)
+
for _, m := range r.msgs {
m.Close()
}
|
Add some docs on debugging | @@ -109,3 +109,19 @@ This example extends the default test harness and creates new ``Overlays`` to co
.. Note:: Remember that since whenever a new test harness is created (or the config. changes, or the config. packages changes, or...), you need to modify the make invocation.
For example, ``make SUB_PROJECT=vcu118 CONF... |
sasuke : change LED gpio setting
Change LED Gpio Setting from Open drain to push-pull
BRANCH=None
TEST=make -j BOARD=sasuke | @@ -61,9 +61,9 @@ GPIO(EN_SLP_Z, PIN(8, 3), GPIO_OUT_LOW)
GPIO(EN_BL_OD, PIN(D, 3), GPIO_ODR_LOW)
GPIO(IMVP9_PE, PIN(E, 0), GPIO_OUT_LOW)
GPIO(ECH1_PACKET_MODE, PIN(7, 5), GPIO_OUT_LOW)
-GPIO(LED_R_ODL, PIN(C, 4), GPIO_ODR_HIGH)
-GPIO(LED_G_ODL, PIN(C, 3), GPIO_ODR_HIGH)
-GPIO(LED_B_ODL, PIN(C, 2), GPIO_ODR_HIGH)
+GPIO... |
efuse: revert EARLY_LOGD to LOGD
introduced in | @@ -68,7 +68,7 @@ esp_err_t esp_efuse_utility_process(const esp_efuse_desc_t* field[], void* ptr,
if ((bits_counter + num_bits) > req_size) { // Limits the length of the field.
num_bits = req_size - bits_counter;
}
- ESP_EARLY_LOGD(TAG, "In EFUSE_BLK%d__DATA%d_REG is used %d bits starting with %d bit",
+ ESP_LOGD(TAG, ... |
Guard against NPE in native code | @@ -492,8 +492,10 @@ namespace carto {
}
element = cluster.clusterElement;
}
+ if (element) {
addRendererElement(element);
}
+ }
bool billboardsChanged = refreshRendererElements();
|
posix: Fix getline | @@ -1016,8 +1016,6 @@ ssize_t getdelim(char **line, size_t *n, int delim, FILE *stream) {
return -1;
}
- constexpr size_t chunk = 1024;
-
char *buffer = *line;
size_t capacity = *n, nwritten = 0;
@@ -1034,7 +1032,7 @@ ssize_t getdelim(char **line, size_t *n, int delim, FILE *stream) {
while (true) {
// Fill the buffer
... |
build: adds urcrypt to top-level shell.nix | @@ -23,7 +23,7 @@ let
#
# Typically the inputs listed here also have a shell.nix in their respective
# source directory you can use, to avoid the Haskell/GHC dependencies.
- inputsFrom = with pkgsLocal; [ ent herb urbit ];
+ inputsFrom = with pkgsLocal; [ ent herb urbit urcrypt ];
# Collect the named attribute from all... |
Fix issue with yr_scanner_set_timeout.
Now that the time is measured in nanoseconds, the timeout must be converted to nanoseconds too. | @@ -289,7 +289,7 @@ YR_API void yr_scanner_set_timeout(
YR_SCANNER* scanner,
int timeout)
{
- scanner->timeout = timeout * 1000000L; // convert timeout to microseconds.
+ scanner->timeout = timeout * 1000000000L; // convert timeout to nanoseconds.
}
|
rpi-base.inc: Add MCP3008 ADC overlay | @@ -39,6 +39,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
overlays/iqaudio-dacplus.dtbo \
overlays/mcp2515-can0.dtbo \
overlays/mcp2515-can1.dtbo \
+ overlays/mcp3008.dtbo \
overlays/miniuart-bt.dtbo \
overlays/pitft22.dtbo \
overlays/pitft28-capacitive.dtbo \
|
nvhw/pgraph_celsius: Nailed down float-to-unorm8 color conversion. | @@ -69,16 +69,16 @@ uint8_t pgraph_celsius_xfrm_f2b(uint32_t val) {
return 0xff;
if (exp < 0x76)
return 0;
- uint32_t fr = extr(val, 0, 23);
- fr |= 1 << 23;
- fr <<= exp - 0x76;
- uint8_t res = fr >> 24;
- if (res >= 0x80)
- res--;
- uint32_t target = res * 0x01010101 + 0x00808080;
- if (fr > target)
- res++;
- return... |
SOVERSION bump to version 2.2.2 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 2)
-set(LIBYANG_MICRO_SOVERSION 1)
+set(LIBYANG_MICRO_SOVERSION 2)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
OcBootServicesTableLib: Fix not registering protocols | @@ -26,7 +26,7 @@ EFI_BOOT_SERVICES *gBS = NULL;
STATIC EFI_CONNECT_CONTROLLER mConnectController = NULL;
STATIC EFI_LOCATE_PROTOCOL mLocateProtocol = NULL;
-STATIC OC_REGISTERED_PROTOCOL mRegisteredProtocols[8];
+STATIC OC_REGISTERED_PROTOCOL mRegisteredProtocols[16];
STATIC UINTN mRegisteredProtocolCount = 0;
STATIC
... |
Fix custom MODEL feature
Previously, the TestDriver would set MODEL to TestHarness if unset. This fixes the feature to let us set MODEL from the makefile. | @@ -50,6 +50,7 @@ PREPROC_DEFINES = \
+define+RESET_DELAY=$(RESET_DELAY) \
+define+PRINTF_COND=$(TB).printf_cond \
+define+STOP_COND=!$(TB).reset \
+ +define+MODEL=$(MODEL) \
+define+RANDOMIZE_MEM_INIT \
+define+RANDOMIZE_REG_INIT \
+define+RANDOMIZE_GARBAGE_ASSIGN \
|
pbio/math: Fix docstring for interpolation. | @@ -96,14 +96,16 @@ static const point_t atan_points[] = {
};
/**
- * Interpolates a constant set of (X, Y) sample points to find y for given x.
+ * Interpolates a constant set of (X, Y) sample points on a curve y = f(x)
+ * to estimate y for given input value x.
*
* If x < x[first] then it returns y[first].
* If x >= ... |
dratini/dragonair: add new SKU
add unprovisioned SKUID to support kblight and convertible for pre-flash
cbi. add SKU ID: 23 (Convertible, TS, Stylus)
BRANCH=none
TEST=make buildall -j. | @@ -366,8 +366,11 @@ static bool board_is_convertible(void)
{
uint8_t sku_id = get_board_sku();
- /* Dragonair (SKU 21 and 22) is a convertible. Dratini is not. */
- return sku_id == 21 || sku_id == 22;
+ /*
+ * Dragonair (SKU 21 ,22 and 23) is a convertible. Dratini is not.
+ * Unprovisioned SKU 255.
+ */
+ return sku... |
lwip - Fix "defined but not used" warnings. | #define file_NULL (struct fsdata_file *) NULL
-static const unsigned int dummy_align__img_sics_gif = 0;
static const unsigned char data__img_sics_gif[] = {
/* /img/sics.gif (14 chars) */
0x2f,0x69,0x6d,0x67,0x2f,0x73,0x69,0x63,0x73,0x2e,0x67,0x69,0x66,0x00,0x00,0x00,
@@ -75,7 +74,6 @@ static const unsigned char data__i... |
Additionl extensions GL_MGL_packed_pixels (old Amiga flavour of GL_EXT_packed_pixels) and GL_EXT_compiled_vertex_arrays (note the s at the end, a common typo...) | @@ -68,8 +68,12 @@ void BuildExtensionsList() {
glstate->extensions = (GLubyte*)malloc(5000); // arbitrary size...
strcpy(glstate->extensions,
"GL_EXT_abgr "
+ #ifdef AMIGAOS4
+ "GL_MGL_packed_pixels " // same as GL_EXT_packed_pixels, but older, some old Amiga games may check for this
+ #endif
"GL_EXT_packed_pixels "
"... |
demux,IsValidExtendedFormat: remove unused variable
quiets -Wunused-but-set-variable
frame_count has been unused in this function since:
demux, Frame: remove is_fragment_ field | @@ -614,7 +614,6 @@ static int IsValidExtendedFormat(const WebPDemuxer* const dmux) {
while (f != NULL) {
const int cur_frame_set = f->frame_num_;
- int frame_count = 0;
// Check frame properties.
for (; f != NULL && f->frame_num_ == cur_frame_set; f = f->next_) {
@@ -649,8 +648,6 @@ static int IsValidExtendedFormat(co... |
out_bigquery: use new upstream prototype for tls handling | @@ -306,7 +306,7 @@ static int cb_bigquery_init(struct flb_output_instance *ins,
* (no oauth2 service)
*/
ctx->u = flb_upstream_create_url(config, FLB_BIGQUERY_URL_BASE,
- io_flags, &ins->tls);
+ io_flags, ins->tls);
if (!ctx->u) {
flb_plg_error(ctx->ins, "upstream creation failed");
return -1;
|
Comments adjustment | @@ -108,7 +108,7 @@ AjaxFranceLabs.DateSelectorFacetModule = AjaxFranceLabs.AbstractModule.extend({
$("#" + this.id + "-date-selector").find(".go").show();
},
- // Validates that the input string is a valid date formatted as "mm/dd/yyyy"
+ // Validates that the input string is a valid date formatted as "dd/mm/yyyy"
isV... |
zephyr: Include i2c_map.h for I2C enabled boards
BRANCH=none
TEST=zmake build for volteer and zmake test for ec and i2c | #include "gpio_map.h"
#endif
+/* Include board specific i2c mapping if I2C is enabled. */
+#if defined(CONFIG_I2C) && !defined(CONFIG_ZTEST)
+#include "i2c_map.h"
+#endif
+
#endif /* __BOARD_H */
|
dm: resize the vm_config buffer in 'vm_get_config()'
resize vm_config buffer from 16KB to 32KB, as 16KB
is not enough on EHL platform, which will result in
crash when accessing this memory. | @@ -713,7 +713,7 @@ vm_irqfd(struct vmctx *ctx, struct acrn_irqfd *args)
int
vm_get_config(struct vmctx *ctx, struct acrn_vm_config *vm_cfg)
{
-#define VM_CFG_BUFF_SIZE 0x4000
+#define VM_CFG_BUFF_SIZE 0x8000
int i, err = 0;
uint8_t *configs_buff;
struct acrn_vm_config *pcfg;
@@ -735,6 +735,7 @@ vm_get_config(struct vm... |
console: Fix typo
Fix typo that led to the following error:
```
repos/apache-mynewt-core/sys/console/minimal/src/console.c:135:19:
error: 'promot' undeclared (first use in this function); did you mean 'prompt'?
console_write(promot, strlen(prompt));
``` | @@ -132,7 +132,7 @@ console_out(int c)
void
console_prompt_set(const char *prompt, const char *line)
{
- console_write(promot, strlen(prompt));
+ console_write(prompt, strlen(prompt));
if (line) {
console_write(line, strlen(line));
}
|
docs: fix typo for openmpi install | @@ -40,7 +40,7 @@ OpenMPI & \multicolumn{1}{c}{\checkmark} & \multicolum
% ohpc_command if [[ ${enable_mpi_defaults} -eq 1 && ${enable_pmix} -eq 0 ]];then
% ohpc_indent 5
\begin{lstlisting}[language=bash]
-[sms](*\#*) (*\install*) openmpi9-gnu9-ohpc mpich-gnu9-ohpc
+[sms](*\#*) (*\install*) openmpi4-gnu9-ohpc mpich-gnu... |
Update Zig demo cart to use wrapper API | @@ -12,27 +12,23 @@ export fn BOOT() void {
}
export fn TIC() void {
- if (tic.btn(0) != 0) {
+ if (tic.btn(0)) {
mascot.y -= 1;
}
- if (tic.btn(1) != 0) {
+ if (tic.btn(1)) {
mascot.y +=1;
}
- if (tic.btn(2) != 0) {
+ if (tic.btn(2)) {
mascot.x -= 1;
}
- if (tic.btn(3) != 0) {
+ if (tic.btn(3)) {
mascot.x += 1;
}
tic.... |
boot: zephyr: select GPIO when MCUBOOT_SERIAL is enabled
Select GPIO when MCUBOOT_SERIAL is enabled. | @@ -143,8 +143,9 @@ menuconfig MCUBOOT_SERIAL
bool "MCUboot serial recovery"
default n
select REBOOT
- select UART_INTERRUPT_DRIVEN
+ select GPIO
select SERIAL
+ select UART_INTERRUPT_DRIVEN
select BASE64
select TINYCBOR
help
|
Change receive buffer | #endif
static int result = 0;
-static uint32_t config_rcv_buffer_size = 16*1024*1024; // 1MB rcv buffer
+static uint32_t config_rcv_buffer_size = 32*1024*1024; // 32MB rcv buffer
static uint32_t config_max_flows = 50;
static uint8_t config_log_level = 0;
static char request[512];
|
doc: add some notes in tutorial | @@ -30,7 +30,10 @@ following benefits arise:
- The administrator can choose:
- the configuration file syntax (e.g. XML or JSON)
- notification and logging on configuration changes
+ - defaults on absence of values using specifications
- and all other features [that plugins provide](/src/plugins/)
+- The parsing result ... |
options/posix: Implement execle | @@ -97,9 +97,24 @@ int execl(const char *path, const char *arg0, ...) {
return execve(path, argv, environ);
}
-int execle(const char *, const char *, ...) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+// This function is taken from musl.
+int execle(const char *path, const char *arg0, ...) {
+ int argc;... |
Fix documentation per Christian Huitema's comments | @@ -5,7 +5,7 @@ The sample program is a simple QUIC client/server demo.
Building
--------
-picoquic\_sample is built as part of the compilation process of picoquic. It is
+picoquic\_sample is built as part of the compilation process of picoquic. It
will be available in the root folder.
Usage
@@ -20,8 +20,8 @@ Example
G... |
add _XTAL_FREQ macro. | /***** Feature test switches ************************************************/
/***** System headers *******************************************************/
+#ifndef _XTAL_FREQ
+#define _XTAL_FREQ 10000000
+#endif
#ifndef FCY
#define FCY (_XTAL_FREQ/2)
#endif
#include <libpic30.h>
/***** Local headers ****************... |
VERSION bump to version 0.11.42 | @@ -32,7 +32,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 11)
-set(LIBNETCONF2_MICRO_VERSION 41)
+set(LIBNETCONF2_MICRO_VERSION 42)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(L... |
fix: ws->me no longer overwritten by every event | @@ -550,8 +550,6 @@ on_dispatch_message(
size_t nids = ntl_length((void**) buf);
uint64_t *ids = (uint64_t*)malloc(nids * sizeof(uint64_t));
- ASSERT_S(NULL != ids, "Out of memory");
-
for(size_t i = 0; i < nids; i++) {
orka_strtoull(buf[i]->start, buf[i]->size, ids + i);
}
@@ -565,8 +563,6 @@ on_dispatch_message(
}
ch... |
Gamma correct colors correctly; | #include "loaders/font.h"
#include "event/event.h"
#include "filesystem/filesystem.h"
+#include "math/math.h"
#include "math/mat4.h"
#include "math/vec3.h"
#include "util.h"
@@ -24,6 +25,14 @@ static void onCloseWindow(GLFWwindow* window) {
}
}
+static void gammaCorrectColor(Color* color) {
+ if (state.gammaCorrect) {
... |
Update test to work with different collations.
The data returned by the protocol has not been sorted yet so it is vulnerable to differences in collation.
Multiple records are not needed for this test so limit it to one path to solve this issue. | @@ -291,7 +291,14 @@ testRun(void)
"check content");
// -------------------------------------------------------------------------------------------------------------------------
- TEST_TITLE("check protocol function directly with a file");
+ TEST_TITLE("check protocol function directly with a path");
+
+ // Remove the ... |
stm32/make-stmconst.py: Allow "[]" chars when parsing source comments.
For STM32WB MCUs, EXTI offset addresses were not parsed due to the
appearance of "[31:0]" in a comment in the .h file. | @@ -46,7 +46,7 @@ class LexerError(Exception):
class Lexer:
re_io_reg = r"__IO uint(?P<bits>8|16|32)_t +(?P<reg>[A-Z0-9]+)"
- re_comment = r"(?P<comment>[A-Za-z0-9 \-/_()&:]+)"
+ re_comment = r"(?P<comment>[A-Za-z0-9 \-/_()&:\[\]]+)"
re_addr_offset = r"Address offset: (?P<offset>0x[0-9A-Z]{2,3})"
regexs = (
(
|
fixed a small initialization issue | @@ -110,6 +110,10 @@ void VDP_init()
pw = (u16 *) GFX_CTRL_PORT;
for (i = 0x00; i < 0x13; i++) *pw = 0x8000 | (i << 8) | regValues[i];
+ maps_addr = 0;
+ // update minimum address of all tilemap/table (default is plane B)
+ updateMapsAddress();
+
// clear VRAM, reset palettes / default tiles / font and scroll mode
VDP_... |
[core] set min srv->max_fds = 32 (sanity check)
(server load checks will fail if value is too low) | @@ -1735,6 +1735,8 @@ static int server_main_setup (server * const srv, int argc, char **argv) {
#endif
srv->max_fds = (int)srv->srvconf.max_fds;
+ if (srv->max_fds < 32) /*(sanity check; not expected)*/
+ srv->max_fds = 32; /*(server load checks will fail if too low)*/
srv->ev = fdevent_init(srv->srvconf.event_handler... |
honggfuzz: better exit loop | @@ -54,9 +54,11 @@ honggfuzz_t hfuzz;
static void exitWithMsg(const char* msg, int exit_code) {
HF_ATTR_UNUSED ssize_t sz = write(STDERR_FILENO, msg, strlen(msg));
+ for (;;) {
exit(exit_code);
abort();
}
+}
static bool showDisplay = true;
void sigHandler(int sig) {
|
media: Add debug msg when PlayerWorker is dead
If the PlayerWorker is not alive when calling Media APIs,
debug messages are printed | @@ -80,6 +80,7 @@ player_result_t MediaPlayerImpl::destroy()
PlayerWorker& mpw = PlayerWorker::getWorker();
if (!mpw.isAlive()) {
+ meddbg("PlayerWorker is not alive\n");
return PLAYER_ERROR;
}
@@ -124,7 +125,8 @@ player_result_t MediaPlayerImpl::prepare()
PlayerWorker& mpw = PlayerWorker::getWorker();
if (!mpw.isAlive... |
Use Joe's suggested change to u3_pier_snap(). | @@ -524,33 +524,11 @@ _pier_work_save(u3_pier* pir_u)
u3_disk* log_u = pir_u->log_u;
u3_save* sav_u = pir_u->sav_u;
- // This is wrong? We can have requested that the worker should snapshot
- // between when the worker was given a compute request and when the worker
- // returns a compute response. (See the c3_max() ca... |
Retransmit lastPayload instead of resetting the whole process. | @@ -124,7 +124,6 @@ void cjoin_retransmission_cb(opentimer_id_t id) {
}
void cjoin_retransmission_task_cb() {
- cjoin_vars.lastPayload = NUMBER_OF_EXCHANGES - 1; // get around the bug of starting with 1 after retransmit
cjoin_sendPut(cjoin_vars.lastPayload);
}
|
Fixed duplicaiton in struct | @@ -418,7 +418,6 @@ typedef struct libxsmm_matcopy_kernel_config_struct {
unsigned int alu_cmp_instruction;
unsigned int alu_jmp_instruction;
unsigned int alu_mov_instruction;
- unsigned int prefetch_instruction;
char vector_name;
} libxsmm_matcopy_kernel_config;
|
ExtendedTools: Add workaround for upstream PresentMon memory corruption on Windows 8.1 | @@ -1348,6 +1348,39 @@ void HandleDWMEvent(EVENT_RECORD* pEventRecord)
break;
}
+ if (PhWindowsVersion > WINDOWS_7 && PhWindowsVersion < WINDOWS_10)
+ {
+ EventDataDesc desc[] = {
+ { L"ulFlipChain" },
+ { L"ulSerialNumber" },
+ { L"hwnd" },
+ };
+ mMetadata.GetEventData(pEventRecord, desc, _countof(desc));
+ auto ulFl... |
plugins: in_tcp: make TLS optional | @@ -200,5 +200,5 @@ struct flb_input_plugin in_tcp_plugin = {
.cb_flush_buf = NULL,
.cb_exit = in_tcp_exit,
.config_map = config_map,
- .flags = FLB_INPUT_NET | FLB_IO_TLS,
+ .flags = FLB_INPUT_NET | FLB_IO_OPT_TLS,
};
|
[examples] fix occ_slider_crank.py | @@ -142,17 +142,20 @@ with Hdf5() as io:
io.addJoint('joint1', 'part1',
points=[[0., 0., 0.]],
axes=[[0., 1., 0.]],
- joint_class='PivotJointR')
+ joint_class='PivotJointR',
+ absolute=True)
io.addJoint('joint2', 'part2', 'slider',
- points=[[0.5*l2, 0., 0.]],
+ points=[[l1+l2, 0., 0.]],
axes=[[0., 1., 0]],
- joint_cla... |
Improve Card decoding. | @@ -169,11 +169,11 @@ static void snap_version(void *handle)
snap_card_ioctl(handle, GET_CARD_TYPE, (unsigned long)&ioctl_data);
VERBOSE1("SNAP on ");
switch (ioctl_data) {
- case 0: VERBOSE1("ADKU3"); break;
- case 1: VERBOSE1("N250S"); break;
- case 2: VERBOSE1("S121B"); break;
- case 3: VERBOSE1("AD8K5"); break;
- c... |
[CI] Use cache key with a prebuilt toolchain | @@ -37,7 +37,7 @@ jobs:
path: |
x86_64-toolchain
axle-sysroot
- key: libc-and-toolchain
+ key: libc-and-toolchain-2
- name: Build libc and toolchain
shell: bash
|
Testing: Change packing in threads test | @@ -54,6 +54,7 @@ static int encode_file(char* input_file, char* output_file)
grib_handle* source_handle = NULL;
const void* buffer = NULL;
int err = 0;
+ size_t str_len = 0;
FILE* in = fopen(input_file, "rb");
FILE* out = fopen(output_file, "wb");
@@ -86,6 +87,10 @@ static int encode_file(char* input_file, char* outpu... |
pm: add lock for pm_auto_updatestate_cb() | @@ -42,9 +42,14 @@ static void pm_auto_updatestate_cb(FAR void *arg)
{
int domain = (uintptr_t)arg;
enum pm_state_e newstate;
+ irqstate_t flags;
+
+ flags = pm_lock(domain);
newstate = pm_checkstate(domain);
pm_changestate(domain, newstate);
+
+ pm_unlock(domain, flags);
}
/********************************************... |
Update oc_obt.h | @@ -742,11 +742,11 @@ int oc_obt_provision_identity_certificate(oc_uuid_t *uuid,
* @see oc_obt_add_roleid
* @see oc_obt_free_roleid
*/
-
int oc_obt_pki_add_identity_cert(size_t device, const unsigned char *cert,
size_t cert_size, const unsigned char *key,
size_t key_size, oc_sec_credusage_t credusage);
#endif /* OC_OSC... |
Added links to the Cortex-A7 and -A9 reference manuals to documentation overview. | @@ -41,8 +41,8 @@ CMSIS supports a selected subset of <a href="http://www.arm.com/products/process
The Cortex-A Reference Manuals are generic user guides for devices that implement the various ARM Cortex-A processors.
These manuals contain the programmers model and detailed information about the core peripherals.
-- <a... |
Extend test of passing parser as userData | @@ -1728,7 +1728,10 @@ START_TEST(test_user_parameters)
"<?xml version='1.0' encoding='us-ascii'?>\n"
"<!-- Primary parse -->\n"
"<!DOCTYPE doc SYSTEM 'foo'>\n"
- "<doc>&entity;</doc>";
+ "<doc>&entity;";
+ const char *epilog =
+ "<!-- Back to primary parser -->\n"
+ "</doc>";
comment_count = 0;
XML_SetParamEntityParsi... |
added keepalive for dynomite listen connection | @@ -234,6 +234,13 @@ rstatus_t conn_listen(struct context *ctx, struct conn *p) {
return DN_ERROR;
}
+ status = dn_set_keepalive(p->sd, 1);
+ if (status != DN_OK) {
+ log_error("set keepalive on p %d on addr '%.*s' failed: %s", p->sd,
+ p->pname.len, p->pname.data, strerror(errno));
+ // Continue since this is not cata... |
I corrected a typo in the visit closed build script for building on shark. | @@ -375,7 +375,7 @@ gunzip -c $dist.tar.gz | tar xvf - > buildlog 2>&1
cd $dist/src
ver=\`cat VERSION\`
ver2=\`echo \$ver | tr "." "_"\`
-/usr/workspace/ws1/visit/visit/thirdparty_shared/2.13.0/blueos3/cmake/3.8.1/linux-ppc64le_gcc-4.9/bin/cmake . -DCMAKE_BUILD_TYPE:STRING=Release -DVISIT_INSTALL_THIRD_PARTY:BOOL=ON >>... |
tests: skip whitespace on vendor/* | @@ -11,7 +11,7 @@ push(@exempted, glob("m4/*backport*m4"));
my %exempted_hash = map { $_ => 1 } @exempted;
my @stuff = split /\0/, `git ls-files -z -c -m -o --exclude-standard`;
-my @files = grep { ! $exempted_hash{$_} } @stuff;
+my @files = grep { ! $exempted_hash{$_} && $_ !~ m/^vendor\// } @stuff;
unless (@files) {
... |
fix(memory leak):
add exception catch to fiscobcos demo. | @@ -219,7 +219,7 @@ BOAT_RESULT fiscobcos_helloworld(BoatFiscobcosWallet *wallet_ptr)
int main(int argc, char *argv[])
{
BOAT_RESULT result = BOAT_SUCCESS;
-
+ boat_try_declare;
/* step-1: Boat SDK initialization */
BoatIotSdkInit();
@@ -235,12 +235,14 @@ int main(int argc, char *argv[])
result = fiscobcos_loadPersistW... |
[DeviceDrivers][SFUD] Add LOCAL_CCFLAGS to SFUD SConscript. | from building import *
+import rtconfig
cwd = GetCurrentDir()
src = ['spi_core.c', 'spi_dev.c']
CPPPATH = [cwd, cwd + '/../include']
+LOCAL_CCFLAGS = ''
src_device = []
@@ -32,9 +34,13 @@ if GetDepend('RT_USING_SFUD'):
CPPPATH += [cwd + '/sfud/inc']
if GetDepend('RT_SFUD_USING_SFDP'):
src_device += ['sfud/src/sfud_sfdp... |
Fix some comments in xlogreader.h
segment_open and segment_close were mentioned with incorrect names.
Discussion: | * XLogReadRecord or XLogFindNextRecord; it can be passed in as NULL
* otherwise. The WALRead function can be used as a helper to write
* page_read callbacks, but it is not mandatory; callers that use it,
- * must supply open_segment callbacks. The close_segment callback
+ * must supply segment_open callbacks. The segme... |
tutorial: bump version | @@ -50,7 +50,7 @@ This basic tutorial shows you how to compile and run a very basic Elektra applic
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
- -- Elektra 0.9.0 found
+ -- Elektra 0.9.1 found
-- Configuring done
-- Generating done
-- Build files ... |
Fix openmv-fb.py script. | -#!/usr/bin/env python
+#!/usr/bin/env python2
import sys
# import usb.core
# import usb.util
@@ -33,13 +33,38 @@ if 'darwin' in sys.platform:
portname = "/dev/cu.usbmodem14221"
else:
portname = "/dev/openmvcam"
-openmv.init(portname)
+
+connected = False
+openmv.disconnect()
+for i in range(10):
+ try:
+ # opens CDC p... |
notifications: update count on archive | @@ -386,5 +386,7 @@ function archive(json: any, state: HarkState) {
notifIdxEqual(index, idxNotif.index)
);
state.notifications.set(time, unarchived);
+ const newlyRead = archived.filter(x => !x.notification.read).length;
+ updateNotificationStats(state, index, 'notifications', (x) => x - newlyRead);
}
}
|
docs - removed analyze step for recovering a failed master. | <codeph>Active</codeph>. When a standby master is not configured, the command displays
<codeph>No master standby configured</codeph> for the standby master status. If you
configured a new standby master, its status is <codeph>Passive</codeph>. </p></li>
- <li id="ki169625">After switching to the newly active master hos... |
Fix build failure for ub18-relassert | @@ -172,7 +172,7 @@ verify(struct mtf_test_info *lcl_ti, void *cur, struct nkv_tab *vtab, int vc, in
val = vc ? vtab[0].val1 : 0;
while (1) {
- struct kvs_kvtuple kvt;
+ struct kvs_kvtuple kvt = {0};
const int * ip;
cn_cursor_read_internal(lcl_ti, cur, &kvt, &eof);
|
dev-tools/scipy: bump to v1.1.0 | @@ -43,7 +43,7 @@ Requires: openblas-%{compiler_family}%{PROJ_DELIM}
%define PNAME %(echo %{pname} | tr [a-z] [A-Z])
Name: %{python_prefix}-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 1.0.0
+Version: 1.1.0
Release: 1%{?dist}
Summary: Scientific Tools for Python
License: BSD-3-Clause
|
Require at least base 4.7 (i.e. GHC 7.8)
Older GHC versions are not tested, so no compatibility is claimed. | @@ -42,7 +42,8 @@ flag luajit
default: False
library
- build-depends: base == 4.*, bytestring >= 0.10.2.0 && < 0.11
+ build-depends: base >= 4.7 && < 5,
+ bytestring >= 0.10.2 && < 0.11
exposed-modules: Scripting.Lua, Scripting.Lua.Raw
hs-source-dirs: src
ghc-options: -Wall -O2
|
add hoverclient | @@ -1475,8 +1475,12 @@ drawbar(Monitor *m)
if (m->sel == c) {
//background color rectangles to draw circle on
- if (!c->issticky)
+ if (!c->issticky) {
+ if (c == selmon->hoverclient && !selmon->gesture)
+ drw_setscheme(drw, scheme[SchemeHoverTags]);
+ else
drw_setscheme(drw, scheme[SchemeTags]);
+ }
else
drw_setscheme... |
Nuget: Store files in correct RID. | @@ -1252,17 +1252,33 @@ if(${TINYSPLINE_WITH_CSHARP})
get_filename_component(TINYSPLINE_NUGET_INTERFACE_FILE
${TINYSPLINE_CSHARP_INTERFACE_FILE}
NAME)
+ if(${TINYSPLINE_PLATFORM_NAME} STREQUAL "linux")
+ set(TINYSPLINE_NUGET_RID "linux")
+ elseif(${TINYSPLINE_PLATFORM_NAME} STREQUAL "macosx")
+ set(TINYSPLINE_NUGET_RID... |
fix(discord-restapi.c): discord_get_channel_invites() should be REQUEST_ATTR_LIST_INIT() | @@ -908,7 +908,8 @@ discord_get_channel_invites(struct discord *client,
u64_snowflake_t channel_id,
struct discord_invite ***ret)
{
- struct discord_request_attr attr = REQUEST_ATTR_INIT(discord_invite, ret);
+ struct discord_request_attr attr =
+ REQUEST_ATTR_LIST_INIT(discord_invite, ret);
ORCA_EXPECT(client, channel... |
apps/progs.pl: use SOURCE_DATE_EPOCH if defined for copyright year
As with use SOURCE_DATE_EPOCH for the copyright year if it is
defined, to avoid reproducibility problems.
CLA: trivial | @@ -21,7 +21,7 @@ die "Unrecognised option, must be -C or -H\n"
my %commands = ();
my $cmdre = qr/^\s*int\s+([a-z_][a-z0-9_]*)_main\(\s*int\s+argc\s*,/;
my $apps_openssl = shift @ARGV;
-my $YEAR = [localtime()]->[5] + 1900;
+my $YEAR = [gmtime($ENV{SOURCE_DATE_EPOCH} || time())]->[5] + 1900;
# because the program apps/... |
Add default handlers to character entity tests to extend coverage | @@ -580,6 +580,13 @@ START_TEST(test_latin1_umlauts)
run_character_check(text, utf8);
XML_ParserReset(parser, NULL);
run_attribute_check(text, utf8);
+ /* Repeat with a default handler */
+ XML_ParserReset(parser, NULL);
+ XML_SetDefaultHandler(parser, dummy_default_handler);
+ run_character_check(text, utf8);
+ XML_Pa... |
Fix init MCPWM Fault line via config struct
Merges
Closes | @@ -149,8 +149,8 @@ esp_err_t mcpwm_set_pin(mcpwm_unit_t mcpwm_num, const mcpwm_pin_config_t *mcpwm_
mcpwm_gpio_init(mcpwm_num, MCPWM_SYNC_1, mcpwm_pin->mcpwm_sync1_in_num); //SYNC1
mcpwm_gpio_init(mcpwm_num, MCPWM_SYNC_2, mcpwm_pin->mcpwm_sync2_in_num); //SYNC2
mcpwm_gpio_init(mcpwm_num, MCPWM_FAULT_0, mcpwm_pin->mcpw... |
soapy lms - removed duplicate hooks for loopback gain | @@ -426,11 +426,6 @@ void SoapyLMS7::setGain(const int direction, const size_t channel, const std::st
rfic->SetRFELoopbackLNA_dB(value);
}
- else if (direction == SOAPY_SDR_RX and name == "LB_LNA")
- {
- rfic->SetRFELoopbackLNA_dB(value);
- }
-
else if (direction == SOAPY_SDR_RX and name == "TIA")
{
rfic->SetRFETIA_dB(... |
input: initialize events structures | @@ -472,7 +472,7 @@ int flb_input_set_collector_time(struct flb_input_instance *in,
collector->nanoseconds = nanoseconds;
collector->instance = in;
collector->running = FLB_FALSE;
- MK_EVENT_NEW(&collector->event);
+ MK_EVENT_ZERO(&collector->event);
mk_list_add(&collector->_head, &config->collectors);
mk_list_add(&col... |
bricks/virtualhub: Add -rdynamic linker option.
This fixes this runtime error:
ImportError:
~/.pyenv/versions/3.8.2/lib/python3.8/lib-dynload/math.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
And similar for Python 3.10.4. | @@ -191,9 +191,8 @@ LIB_SRC_C += $(addprefix lib/,\
LIB += -lrt
# embedded Python
-
-EMBEDED_PYTHON ?= python3.10
-PYTHON_CONFIG := $(EMBEDED_PYTHON)-config
+EMBEDDED_PYTHON ?= python3.10
+PYTHON_CONFIG := $(EMBEDDED_PYTHON)-config
INC += $(shell $(PYTHON_CONFIG) --includes)
-LDFLAGS += $(shell $(PYTHON_CONFIG) --ldfla... |
iokernel: fix uninitialized variable | @@ -81,6 +81,7 @@ static struct proc *control_create_proc(mem_key_t key, size_t len, pid_t pid,
p->sched_cfg = hdr.sched_cfg;
p->thread_count = hdr.thread_count;
p->uniqid = rdtsc();
+ p->max_overflows = 0;
p->permanent_index = bitmap_find_next_cleared(proc_map, IOKERNEL_MAX_PROC, 0);
bitmap_set(proc_map, p->permanent_... |
added long_controls_allowed tests in GM | @@ -138,9 +138,14 @@ class TestGmSafety(unittest.TestCase):
self.safety.gm_rx_hook(self._brake_msg(False))
def test_disengage_on_gas(self):
+ for long_controls_allowed in [0, 1]:
+ self.safety.set_long_controls_allowed(long_controls_allowed)
self.safety.set_controls_allowed(1)
self.safety.gm_rx_hook(self._gas_msg(True)... |
doc: prettify FSP Code update docs | Code Update on FSP based machine
================================
-There are three OPAL calls for code update on FSP based machine: ::
+There are three OPAL calls for code update. These are currently only
+implemented on FSP based machines.
+
+.. code-block::c
#define OPAL_FLASH_VALIDATE 76
#define OPAL_FLASH_MANAGE 77... |
remove blackbox_override | @@ -117,7 +117,7 @@ void blackbox_update() {
return;
}
- if (blackbox_enabled == 0 && blackbox_override == 0)
+ if (blackbox_enabled == 0)
return;
blackbox.time = timer_millis();
@@ -144,7 +144,7 @@ void blackbox_update() {
blackbox.pid_output = state.pidoutput;
if (blackbox_enabled != 0 && (loop_counter % blackbox_rat... |
test-suite: update ld_preload for fixed intel tau | @@ -5,7 +5,7 @@ unset OMP_NUM_THREADS
export OMP_NUM_THREADS=10
if [ "x$ARCH" == "xx86_64" ];then
if [ "x$LMOD_FAMILY_COMPILER" == "xintel" ];then
- lib=callpath-param-papi-pdt-openmp-profile-trace
+ lib=callpath-param-icpc-papi-pdt-openmp-profile-trace
else
lib=callpath-param-papi-pdt-openmp-opari-profile-trace
fi
|
Add a CHANGES entry for CVE-2019-1551 | Changes between 1.1.1 and 3.0.0 [xx XXX xxxx]
+ *) Fixed an an overflow bug in the x64_64 Montgomery squaring procedure
+ used in exponentiation with 512-bit moduli. No EC algorithms are
+ affected. Analysis suggests that attacks against 2-prime RSA1024,
+ 3-prime RSA1536, and DSA1024 as a result of this defect would b... |
arch/arm/src/stm32f7/stm32_otg.h: fix stm32_otghost_initialize definition | @@ -84,7 +84,7 @@ extern "C"
#endif
/****************************************************************************
- * Name: stm32_otghost_initialize
+ * Name: stm32_otgfshost_initialize
*
* Description:
* Initialize USB host device controller hardware.
@@ -110,7 +110,7 @@ extern "C"
#ifdef CONFIG_USBHOST
struct usbhost... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.